[fpc-devel] Possible issue with 2.7.1 string encodings
paul.ishenin at gmail.com
Sun Aug 25 15:11:53 CEST 2013
25.08.13, 20:44, Martin пишет:
> To find some info I added debugln as follows.
> Note the part
> PInteger(ASource), // just some part of the string, for verification
> PInteger(ASource), // on 2.7.1 Encoding ? // on 2.6.2 length
> PInteger(ASource)[-2] // on 2.7.1 length // on 2.6.2 ref count.
Don't guess, just look at astrings.inc TAnsiRec.
> Only something changed its encoding. I have no idea what...
Please look whether you have UTF8String type somewhere or you use a
constant from a unit with BOM. In this case UTF-8 will be converted to
More information about the fpc-devel