[fpc-devel] String and UnicodeString and UTF8Stringt

Martin Schreiber mse00000 at gmail.com
Wed Jan 12 14:43:53 CET 2011

On Wednesday, 12. January 2011 14.27:14 LacaK wrote:
> Yes, sounds logicaly to me.
> Then you propose same way for TStringField ? (internaly store as
> UnicodeString UTF-16 and also TStringField.Text should return
> UnicodeString instead of String ?

It is done so in MSEgui fork of sqldb.
In case you don't know MSEide+MSEgui, it is here:

> ... what will happens in LCL, when 
> visual component will read UTF-16 string, will they be translated into
> UTF-8 automagicaly?)

It works for MSEgui where all strings are utf-16 FPC UnicodeString. It does 
not work for Lazarus with the utf-8 encoded ansistrings.


More information about the fpc-devel mailing list