#212 Always save unicode files with BOM

Jason Oster

The way Geany currently handles saving unicode files is to include a BOM only if it already exists. This can break encoding detection when the file is next opened, depending on how the file has been converted.

To fix this, the BOM should ALWAYS be written when saving a file in any unicode format which supports it.


  • Nobody/Anonymous

    If you include files with BOM in PHP, it is outputted into the HTML code. Multiple BOM's in HTML creates an error/warning if you do a HTML/XHTML check at W3C.

  • Jason Oster

    Jason Oster - 2008-10-16
    • priority: 5 --> 1
    • status: open --> open-later
  • Jason Oster

    Jason Oster - 2008-10-16

    Noted. After a few problems related to using Unicode BOM was brought to my attention, we decided it's best to wait on this one until more popular software can handle the BOM correctly. Including PHP and GCC.

    ~ Moving this bug to lowest priority and resolving to "Later"

  • frlan

    frlan - 2012-07-25
    • status: open-later --> closed-wont-fix
  • frlan

    frlan - 2012-07-25

    Even 4 years has passed by and still no change on usage of bom. I will close with won't fix. Please open a feature request if you really like to have such thing.


Log in to post a comment.