[fpc-devel] TRegistry and Unicode

Yuriy Sydorov jura at cp-lab.com
Sun Mar 3 17:17:58 CET 2019


On 03.03.2019 17:45, Bart wrote:
> On Sun, Mar 3, 2019 at 11:17 AM Yuriy Sydorov <jura at cp-lab.com> wrote:
> 
> 
>> This is good if you assign the result of ReadString() to a regular ansistring var. But if you assign it to a
>> utf8string,unicodestring,widestring var - it will not return correct result for chars that are missing in the current
>> system code page. This is bad for a user app which is using unicodestring everywhere and don't bother with ansistrings
>> and their default code page.
> 
> Did you actually read this entire thread?

Yes. And I've made some tests and came to the conclusion above. In my opinion it is the most compatible approach.

Yury.




More information about the fpc-devel mailing list