[Lazarus] substr return wrong string with some utf8 char

Michael Schnell mschnell at lumino.de
Mon Feb 14 10:58:24 CET 2011


On 02/11/2011 06:44 PM, Jürgen Hestermann wrote:
> I think the decision for UTF8 is very good.
AFAIK, the decision to use UTF8 is due to Linux using this encoding and 
so no conversion is done in the LCL system API. This of course is bad 
with Windows, as here the API uses UTF16 and everything needs to be 
recoded in the LC System API on entry and exit. Supposedly doing 
different string types - UTF8String vs (a reference counting version of 
UTF-16-encoded) WideString - for Linux and Windows at the LCL-user-Code 
interface is too confusing.

-Michael




More information about the Lazarus mailing list