[Lazarus] TStrings, Windows and Unicode
Howard Page-Clark
hdpc at talktalk.net
Wed Oct 24 13:15:05 CEST 2012
Marc Weustink wrote:
> A stringlist is not LCL and it does not expect anything but strings.
> If you write the contents of a stringlist to a file you get bytes you
> have put into the list. Nothing more nothing less.
Thanks for the clarification.
Juergen Hestermann wrote:
> There is the theory of having UTF8 but in practice you have to
> watch out because in *some* situations the UTF8 paradigm
> is *not* valid and you have to convert strings yourself.
> But where are these places? Mostly they are not even documented.
There may be other places, but this applies at least to every RTL system
call involving names (mainly file and directory routines). It's
annoying, but not insurmountable. And when the new Unicode string is
fully implemented these code-page-related woes will fade into history
(well, that's the theory).
More information about the Lazarus
mailing list