[nem-en] Language support and BOM

Alexey Borzenkov snaury at gmail.com
Tue Jan 30 07:43:59 CET 2007


On 1/30/07, Michal Moskal <michal.moskal at gmail.com> wrote:
>
> With your solution the pain occurs when OTHER developer tries to use
> that file on a different machine.
>
> With the current solution the pain occurs when you save a file in
> cp-whatever (which we consider pure evil) and tries to compile it -
> the compiler chokes on it (at least it should) and the user is forced
> to convert the encoding to utf8 (with or without BOM). Then the user
> if free from pain.


This actually has a point, however it doesn't work this way now. To work
like this it should have been something like this:

reader = IO.StreamReader (file, Text.Encoding("UTF-8",
Text.EncoderExceptionFallback(), Text.DecoderExceptionFallback()));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20070130/e126a26f/attachment-0001.html


More information about the devel-en mailing list