Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #64116
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.012 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'that?': 0.05; 'utf-8': 0.07; 'ascii': 0.09; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'indent': 0.16; 'wrote:': 0.18; '(the': 0.22; 'cc:addr:python.org': 0.22; 'byte': 0.24; 'specifies': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'characters': 0.30; 'message-id:@mail.gmail.com': 0.30; 'fri,': 0.33; 'subject:the': 0.34; 'subject:from': 0.34; 'could': 0.34; 'received:google.com': 0.35; 'problems': 0.38; 'files': 0.38; 'first': 0.61; 'effectively': 0.66; 'protocol,': 0.84; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=+tCqmYW/dNtQNKklbTmwdU3rSFL94KPPV4z020T46Ag=; b=VjBZk5vGy2PvCCyuIx1NpV+vSdw4K0hjDCQP4GWJPhoycDD6FUW2R+qg9egIb17gLe V0i+QhUOsp1Z2d0i/oEy8QVjTL8UjiSOeVbPsBSKYfkJOZKWpD0XTCPdx5CFc/fyHmxF z4bP1KNhioUAeqqAarfbcxN0P+SFnHtPlwPp6hZDwB2tL1QjdivFJJCw0VyQbkPYHjPt YjFR5R++JRky/ikL2n0TF2/+/T2QjknSXhut6hcI3DD8diknHBfYShxdr5dnIMsiNZ/z o5J7kea1ZvLSVJKPgZk/5YNzenKJRp0J68CYRxnOrW2b9rCCj0tyjRSsXiAWAiyjfwfO gSRg== |
| MIME-Version | 1.0 |
| X-Received | by 10.68.183.164 with SMTP id en4mr2015987pbc.169.1389917657380; Thu, 16 Jan 2014 16:14:17 -0800 (PST) |
| In-Reply-To | <1389901049.40172.YahooMailBasic@web163804.mail.gq1.yahoo.com> |
| References | <CAPTjJmqyO0UHrq31510iNeoQ2TcrJnosV0A6oHQOt5i-gz3njA@mail.gmail.com> <1389901049.40172.YahooMailBasic@web163804.mail.gq1.yahoo.com> |
| Date | Fri, 17 Jan 2014 11:14:17 +1100 |
| Subject | Re: Guessing the encoding from a BOM |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5612.1389917661.18130.python-list@python.org> (permalink) |
| Lines | 9 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1389917661 news.xs4all.nl 2965 [2001:888:2000:d::a6]:45263 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:64116 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Guessing the encoding from a BOM Chris Angelico <rosuav@gmail.com> - 2014-01-17 11:14 +1100
csiph-web