Martin Schreiber wrote:
FPC fixes_3_0 with the program " program json; {$codepage utf8} {$ifdef FPC}{$mode objfpc}{$h+}{$endif} {$ifdef mswindows}{$apptype console}{$endif} uses {$ifdef FPC}{$ifdef unix}cthreads,cwstring,{$endif}{$endif} sysutils; resourcestring a = 'aäÄ'; begin end. " produces the file json.rsj " {"version":1,"strings":[ {"hash":7200948,"name":"json.a","value":"a\u00C3\u00A4\u00C3\u0084"} ]} " Is this intended?
I have no idea. I only looked at the compiler/cresstr.pas unit and saw that the codepage of resource strings stored in the object code is set to the source file code page. I don't even know how the .rst/.rsj files are used by the compiler or RTL (or external tools), and have never worked on this aspect of the compiler/RTL.
Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal