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.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to