RE: [fpc-devel] Default strings encoding

2006-10-10 Thread peter green
> If I have a ansistring, and cast that to a WideString, fpc is > converting from which encoding to which encoding? the default is ISO-8859-1 to UCS-2/UTF-16 (the only difference between the two being UTF-16 support for surrogates), however this can be changed by registering a widestring manager.

RE: [fpc-devel] Default strings encoding

2006-10-10 Thread peter green
> > I'm not sure what > > WideString holds. Maybe UTF-16? Or a limited UTF-16 with only 2 bytes > > characters. > > UCS-2. Basically this is UTF-16 with only 2-byte characters, allthough > there are small differences in the high regions; UCS-2 is code > points $0..$, while UTF-16 has facilities

Re: [fpc-devel] Default strings encoding

2006-10-10 Thread Daniƫl Mantione
Op Tue, 10 Oct 2006, schreef Felipe Monteiro de Carvalho: > Hello, > > If I have a ansistring, and cast that to a WideString, fpc is > converting from which encoding to which encoding? Without widestring manager, it converts iso-8859-1 to UCS-2. > ansistring can hold utf-8 also, not only iso.