Forum OpenACS Development: Re: Removing BOM from JSON

Collapse
3: Re: Removing BOM from JSON (response to 1)
Posted by Gustaf Neumann on
OpenACS (or Tcl) does not generate BOMs, BOMs are not related to json and could appear in any kind of UTF-8 text. The Unicode Standard permits the BOM in UTF-8, but does not require or recommend its use [1]. Probably do you get the json string from some external source (maybe an editor). You should either tell the source, not to generate the BOM, or you should strip it... what you are doing anyhow.

-gn

PS: BOM stands for Byte Order Mark.

[1] https://en.wikipedia.org/wiki/Byte_order_mark
[2] https://stackoverflow.com/questions/3255993/how-do-i-remove-%C3%AF-from-the-beginning-of-a-file