Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54688

Re: removing BOM prepended by codecs?

From Peter Otten <__peter__@web.de>
Subject Re: removing BOM prepended by codecs?
Date 2013-09-24 13:06 +0200
Organization None
References <52415E7E.6010701@kent.ac.uk>
Newsgroups comp.lang.python
Message-ID <mailman.292.1380020774.18130.python-list@python.org> (permalink)

Show all headers | View raw


J. Bagg wrote:

> I'm having trouble with the BOM that is now prepended to codecs files.
> The files have to be read by java servlets which expect a clean file
> without any BOM.
> 
> Is there a way to stop the BOM being written?

I think if you specify the byte order explicitly with "UTF-16-LE" or 
"UTF-16-BE" no BOM is written.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: removing BOM prepended by codecs? Peter Otten <__peter__@web.de> - 2013-09-24 13:06 +0200

csiph-web