[fpc-pascal] RTL and Unicode Strings
Graeme Geldenhuys
mailinglists at geldenhuys.co.uk
Wed May 11 12:40:56 CEST 2016
On 2016-05-11 10:48, Michael Van Canneyt wrote:
> Honestly, I don't understand this preoccupation with {$modeswitch unicodestrings}
>
> It just means that
>
> Var
> a : string;
>
> is read by the compiler as
>
> Var
> a : unicodestring;
>
> No more, no less.
It saves you from data loss in the case where you use units that use the
String data type and assign Unicode data to it -- and you run your
program on a system where the locale is not UTF-8 or UTF-16. eg: Latin-1.
Regards,
Graeme
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
My public PGP key: http://tinyurl.com/graeme-pgp
More information about the fpc-pascal
mailing list