[fpc-devel] Unicode support (yet again)

Hans-Peter Diettrich DrDiettrich1 at aol.com
Mon Sep 19 02:23:26 CEST 2011


Luiz Americo Pereira Camara schrieb:

>> Thanks, but that's nothing new to me in general, and the RawByteString 
>> handling doesn't work as documented.
> 
> procedure ShowCodePage(const S: RawByteString);
> begin
>   Form1.Caption := IntToStr(StringCodePage(S));
> end;
> 
> 
> Strange
> 
> What value you get passing and UTF8 and UTF16?
> 
> According to that site you should get 65001 and 1200

UTF-8 comes in as 65001, and UTF-16 as Ansi.


> You may try also with UTF16 and UTF8 it should implicitly convert to 
> UnicodeString

Right.

DoDi




More information about the fpc-devel mailing list