On Mon, 29 Dec 2008 01:33:10 +0400, <""amos"<amos"@emailaya.com>> wrote:

> when doing the same in D2009, the result is the same as the string  
> itself as if no conversion was done.

Use BytesOf() or see help for "automatic string conversion" (or like  
this). If short, Delphi 2009 has information of string code page and uses  
her for conversion to unicode when required. Example:

Var

rbs : RawByteString;

Begin

rbs := Utf8Encode(<your string>);

// rbs contains bytes of UTF8, and code page is UTF8

SetCodePage(rbs, 0, False);

// rbs contains bytes of UTF8, but code page is 0 (raw)

End;

-- 
Kazantsev Alexey

------------------------------------------------------------------------------
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to