[fpc-devel] Unicode resourcestrings

Christian Iversen chrivers at iversen-net.dk
Fri Feb 29 15:39:28 CET 2008


Martin Schreiber wrote:
> 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.
> Are there plans to implement unicode resourcestrings?

There is a non-ambiguous UTF-8 to UTF-16 mapping. It should be no 
problem at all, except for the extra programming effort.

-- 
Med venlig hilsen
Christian Iversen



More information about the fpc-devel mailing list