[Lazarus] TProcess, UTF8, Windows
Martin Schreiber
mse00000 at gmail.com
Sun Apr 15 07:16:15 CEST 2012
On Saturday 14 April 2012 22:36:02 Marcos Douglas wrote:
>
> Well, works if I change this line:
> fname := 'c:\á b ç\á.txt';
> to this:
> fname := UTF8Decode('c:\á b ç\á.txt');
>
> And doesn't matter if fname is UnicodeString or string -- well, the
> debug hint to 'UnicodeString' is more beautiful than 'string' because
> the compiler translate.
>
Add {$codepage utf8} to the unit header or compile with -Fcutf8, this is the
default setting in MSEide+MSEgui for automatic Unicode handling.
Warning: most likely this setting will break Lazarus on FPC 2.6.0. I don't
know if Lazarus is fully tested with cpstrnew and -Fcutf8 already.
Martin
More information about the Lazarus
mailing list