[Geany] Incorrect BOM for UTF-8 files
Andreas Tscharner
andy at xxxxx
Tue Jan 23 14:58:01 UTC 2007
Hello World, hello Enrico,
I've noticed today that the "Write Unicode BOM" function from geany
writes FF FE for my test file for which I used UTF-8 encoding.
FF FE is the BOM for UTF-16 little endian, for UTF-8 the correct BOM
would be EF BB BF
See: http://www.unicode.org/unicode/faq/utf_bom.html#BOM
Is this a bug or is there any reason for doing so?
Best regards
Andreas
P.S. I noticed that other editors also write FF FE for UTF-8 files...
--
("`-''-/").___..--''"`-._
`o_ o ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' .'
(il).-'' (li).' ((!.-'
Andreas Tscharner andy at vis.ethz.ch
http://www.vis.ethz.ch/~andy ICQ-No. 14356454
More information about the Users
mailing list