[fpc-devel] new string - question on usage
Michael Schnell
mschnell at lumino.de
Wed Oct 12 14:13:28 CEST 2011
On 10/12/2011 01:45 PM, Hans-Peter Diettrich wrote:
> Michael Schnell schrieb:
>> So target encoding ID "0" means that " := " will preserve the
>> encoding of the source and set the target appropriately without doing
>> a conversion.
>
> No. Codepage 0 stands for the system encoding, formerly "native"
> string encoding. I.e. 1252 on western Windows, maybe 65001 (UTF-8) on
> Linux (user selectable).
Not when a string with encoding ID 0 is used as a target.
Paul wrote:
> If you mean "AnsiString" then it is loaded with encoding 0 which means
> default system codepage. It will get the real encoding number after
> the first assignment.
-Michael
More information about the fpc-devel
mailing list