Menu

#13 Select BOM or not with UTF-8

open
nobody
None
5
2011-08-26
2011-08-26
Anonymous
No

It would be very nice to be able to chose if UTF-8 output is with or without BOM.

Discussion

  • Tah Wei

    Tah Wei - 2011-09-02

    The UTF-8 encoding uses BOM and can be handled by most modern software. Is there a reason to omit it? To save 3 bytes? If not, I would rather not clutter the menu with rarely-used options.

     
  • Anonymous

    Anonymous - 2011-09-15

    Does it really use BOM? No, the main reason is not to save 3 bytes. The main reason is that the BOM causes trouble, and is not required in UTF-8. PHP (for example) does not like it. I don't like cluttered menus either. But we all have different needs, according to me this is important.

     
  • Tah Wei

    Tah Wei - 2011-10-09

    The BOM causes trouble to software that are still stuck in the dark ages. I recognize the conflicting need to support these "legacy" programs and the need to provide a usable interface. The average user will not know what a BOM is and may be confused by it.

    At its heart, TextWarrior will remain a general-purpose text editor (although many people use it as a programming text editor). That means that internationalization and usabliilty issues are more important than supporting programming activities. This is also why the built-in text editor of Windows and Mac do not offer the option of including/excluding the BOM.

     
  • Tah Wei

    Tah Wei - 2011-10-09

    I forgot to add that if you are only interested in ASCII text, you can use the Latin-1 encoding option. That does not have BOM and should work fine with PHP.