[fpc-devel] Unicode support (yet again)

Florian Klämpfl florian at freepascal.org
Fri Sep 16 19:33:19 CEST 2011


Am 16.09.2011 19:24, schrieb Luiz Americo Pereira Camara:
> with RawByteString (need the conversion - but how ?????):
> 
> function FileGetAttr(const FileName: RawByteString): Longint;
> begin
>   // how to convert?
>   // UnicodeString(FileName) -> will not work because dont know if is
> was a UTF8 or UTF16 

Of course this is known. The code page field of the string describes it.
RawByteString means only: eat any string without conversion.



More information about the fpc-devel mailing list