[Geany] Incorrect BOM for UTF-8 files

Enrico Tröger enrico.troeger at xxxxx
Tue Jan 23 15:25:47 UTC 2007


On Tue, 23 Jan 2007 15:58:01 +0100, Andreas Tscharner
<andy at vis.ethz.ch> wrote:

> 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
Er, here it works as expected.
- open a file
- set the encoding to UTF-8
- set to write a BOM (document menu->Write Unicode BOM)
- type some text
- save the file
If I open the saved file with a hexeditor, it starts with EF BB BF.
Which version of Geany, GLib and iconv you are using? Are you
perhaps using another platform than x86?

Regards,
Enrico

--
Get my GPG key from http://www.uvena.de/pub.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20070123/b7319aed/attachment.pgp>


More information about the Users mailing list