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


Groups > comp.lang.python > #54688 > unrolled thread

Re: removing BOM prepended by codecs?

Started byPeter Otten <__peter__@web.de>
First post2013-09-24 13:06 +0200
Last post2013-09-24 13:06 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#54688 — Re: removing BOM prepended by codecs?

FromPeter Otten <__peter__@web.de>
Date2013-09-24 13:06 +0200
SubjectRe: removing BOM prepended by codecs?
Message-ID<mailman.292.1380020774.18130.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web