[erlang-questions] utf8 in source files

Allan Wegan allanwegan@REDACTED
Tue Nov 9 06:52:03 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>> It should assume that a BOM is present at the start of the file.
> Why? BOMs are for UTF-16 and UTF-32 which are generally silly encodings to use in source file

It does not hurt to support BOMs. They may be used with UTF-8 too and
Erlang already has easy to use functions dealing with BOM detection.
If there is no BOM, UTF-8 will be assumed anyway. Nothing is lost due to
supporting BOMs.

- -- 
Allan Wegan
Jabber: allanwegan@REDACTED
ICQ:    209459114
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (MingW32)

iQEcBAEBAgAGBQJM2OGDAAoJENm5axHh7Acx2VwH/R0vUnMhtjCSgxT8ncaMOmC9
z4Ewj9ssbT4PyY9csvBtiBLWpQbdavmJ10j07qJMb/WLB2IyP62NhBjHvHC1jBeE
HX8lgb1lTonZHpMbY2zZH9ScHCVe9sX+9pIBEaVMMs3AnCTyCqch+ab3P5EsKHOD
UUA8CVgDwWyDnInvzrgF49duT7VTRL0i8BEqa4cw6Zn5Qs6fVJLXtATgUluZM7Fn
JYed8aXim6a9W7agRDfFNyw1x3Ug5qGIa3c1qEDeot0H+7GoR1VGxmZyGTZ2PgEY
bdUC8XyN+31pWTnXWiMPkkGnj22ioQc45GdJbM4lWuyIdtbKzXPEOId1b6lpbUQ=
=oX7i
-----END PGP SIGNATURE-----


More information about the erlang-questions mailing list