[fpc-devel] Unicode resourcestrings

Daniël Mantione daniel.mantione at freepascal.org
Fri Feb 29 09:25:18 CET 2008



Op Fri, 29 Feb 2008, schreef Martin Schreiber:

> On Friday 29 February 2008 09.02:02 Daniël Mantione wrote:
>> Op Fri, 29 Feb 2008, schreef Martin Schreiber:
>>> Hi,
>>> Is there a way in current FPC to have unicode or wide resourcestrings?
>>> Thanks,
>>
>> Resourcestrings are ansistrings, so the answer is no. This is indeed a
>> shortcoming in a widestring environment, the only solution is probably to
>> encode them UTF-8.
>>
> This works with utf-8 system encoding only -> not in an usual Windows
> installation.

There is utf8decode/utf8encode.

> Are there plans to implement unicode resourcestrings?

No, but this is just because you are the first one to ask. Could you make 
a proposal? Then we'll see how this can be implemented.

Daniël


More information about the fpc-devel mailing list