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


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

Re: Guessing the encoding from a BOM

Started byChris Angelico <rosuav@gmail.com>
First post2014-01-17 11:14 +1100
Last post2014-01-17 11:14 +1100
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: Guessing the encoding from a BOM Chris Angelico <rosuav@gmail.com> - 2014-01-17 11:14 +1100

#64116 — Re: Guessing the encoding from a BOM

FromChris Angelico <rosuav@gmail.com>
Date2014-01-17 11:14 +1100
SubjectRe: Guessing the encoding from a BOM
Message-ID<mailman.5612.1389917661.18130.python-list@python.org>
On Fri, Jan 17, 2014 at 6:37 AM, Albert-Jan Roskam <fomcl@yahoo.com> wrote:
> Can you elaborate on that? Unless your utf-8 files will only contain ascii characters I do not understand why you would not want a bom utf-8.

It's completely unnecessary, and could cause problems (the BOM is
actually whitespace, albeit zero-width, so it could effectively indent
the first line of your source code).  UTF-8 specifies the byte order
as part of the protocol, so you don't need to mark it.

ChrisA

[toc] | [standalone]


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


csiph-web