[fpc-devel] Default strings encoding

peter green plugwash at P10Link.net
Tue Oct 10 22:58:35 CEST 2006


> > 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..$ffff, while UTF-16 has facilities to allow for multiword
> characters.
there is nothing intrinsic about how widestring is implemented that stops it
holding UTF-16 multiword characters, its just a matter of whether the
routines its passed to do (on windows i belive surrogate support depends on
a registry setting and is disabled by default on western editions).





More information about the fpc-devel mailing list