[Lazarus] Unicode support in source editor

ik idokan at gmail.com
Sun Apr 20 12:34:23 CEST 2008


Mattias.

I believe that it is a wrong way to do it. For example the 12xx are
Windows language codes. Sometimes you wish to use them as-is, so this
will actually create a bug imho.

You should create a tool that asks on each string (or yes to all) to
convert it into UTF-8 instead.

Ido

On Sun, Apr 20, 2008 at 12:38 PM, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
> 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
>  Lazarus at lazarus.freepascal.org
>  http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
http://ik.homelinux.org/



More information about the Lazarus mailing list