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 -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus