[nem-en] Language support and BOM

Alexey Borzenkov snaury at gmail.com
Mon Jan 29 21:49:41 CET 2007


I had once proposed a patch that implemented autodetection similar to VS and
MS C# in Nemerle (and it's still available at
http://snaury.googlepages.com/nemerle-encoding-detection.patch). But it was
rightfully rejected because of its complexity (it was more than reading
files as array[byte]). Btw, VS does not treat files as encoded in current
encoding. When file is correct utf-8 (*not* ASCII) it detects that it's
utf-8 and parses/saves it as utf-8 (Options->Text Editor->Auto-detect UTF-8
encoding without signature is checked by default). However if file is new or
if file was ASCII it saves it in current multi-byte. I also believe it's
possible to change file encoding from within VS somehow...

On 1/29/07, vc <vc at rsdn.ru> wrote:
>
> It's inconveniently to use Russian strings in Nemerle source files.
> By default VS treat files as encoded in current encoding. In my PC it's a
> 1251. ncc tarte files as UTF-8. It's result to trash instead Russian text.
>
> Suggest read files as array[byte] and convert it's content to appropriate
> encoding on the basis of Byte Order Mark (BOM):
> http://en.wikipedia.org/wiki/Byte_Order_Mark
>
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20070129/f0be677f/attachment-0001.html


More information about the devel-en mailing list