Hi all,
The IDE now (svn 14904) tries to find out the encoding of a source file
and converts it to UTF-8 on loading and back on saving.
The converter currently supports the following encodings:
ISO-8859-1
windows code pages
1250 central europe
1251 cyrillic
1252 latin 1
1253 greek
1254 turkish
1255 hebrew
1256 arabic
1257 baltic
1258 vietnam
874 thai
The IDE uses a simple heuristic to find out the current encoding.
(unit LConvEncoding, function GuessEncoding). It tests for BOM,
{%encoding eee}, ASCII and UTF-8. If none fits then the system encoding
is used. If the system encoding is UTF-8 then ISO-8859-1 is chosen.
See here:
http://wiki.lazarus.freepascal.org/IDE_Development#UTF-8_Sources
Mattias
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus