[fpc-devel] utf8 reading

C Western mftq75 at dsl.pipex.com
Wed Mar 9 23:31:12 CET 2005


C Western wrote:

> Florian Klaempfl wrote:
>
>> C Western wrote:
>>
>>> Can I offer the attached patch for reading utf8 strings from 
>>> resource files? It simply converts the utf string to a normal string 
>>> by discarding the high bits, 
>>
>>
>>
>> What would be the correct solution?
>
>
> I am showing my ignorance of multi byte characater handling here, but 
> I think it would be to write an escaped sequence as is currently done 
> for wide strings. I don't think the current OutChars function is quite 
> up to it, as utf8 characters can be 32 bits?

As a bit of background information as to why some work may ve necessary, 
the problem I had was with a copyright character in a string property, 
which some version of Delphi had decided to write out as utf8.
Colin




More information about the fpc-devel mailing list