[nem-en] Language support and BOM

Kamil Skalski kamil.skalski at gmail.com
Mon Jan 29 22:04:01 CET 2007


>
> We can add compiler option which switches to use utf-8 as default, but by
> default we should treat files without BOM as encoded in current user
> encoding.
>

I do not agree with this. The rule is quite simple - you must use
utf8. This way we:
- have it standardized, so developers can exchange files without
problems or having to worry about converting
- do not support deprecated encodings, which simply break when not run
on "my machine"
- keep the implementation simple and reliable

Auto detection is good when you need to deal with large amount of data
coming from non-programmers using lame soft.

-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list