Ex date as per the prospectus is 29th of January.
This means IMO that you need to own shares at close of business of 28th of January to get the entitlement.
Hence, if you sell on 28th or earlier you will not have the ent.
If you sell on 29th or after you should still have the entitlement.
However, these things occasionally get stuffed up by brokers and registry, so please DYOR.