[fpc-devel] new strings, rawbyte type, but what about "raw" encoding

Michael Schnell mschnell at lumino.de
Tue Oct 11 11:40:25 CEST 2011


On 10/11/2011 11:05 AM, Marco van de Voort wrote:
> IRC there is also a codepage that
> just means "system default" and assumes the system knows how to convert that
> from/to utf16 (or utf8 on *nix)
>
Why should it do a _conversion_ and not just use the appropriate coding 
(e.g. utf-16 on Windows and utf-8 on *nix) for the constants and thus 
provide that all strings are initialized with this coding when they get 
any content (of course the content originated by the OS/WidgetSet API 
comes in in this coding as well.

So - unless the user code forces it - no conversion ever is necessary.

-Michael



More information about the fpc-devel mailing list