Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!goblin1!goblin.stu.neva.ru!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'win32': 0.03; 'insert': 0.05; 'utf-8': 0.07; 'subject:skip:c 10': 0.09; 'subject:question': 0.10; 'cc:addr:python-list': 0.11; '-tkc': 0.16; '[1].': 0.16; 'denotes': 0.16; 'encodings': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'inserting': 0.16; '(you': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'certain': 0.27; 'header:In-Reply- To:1': 0.27; '[1]': 0.29; 'characters': 0.30; 'url:wiki': 0.31; 'url:wikipedia': 0.31; 'anyone': 0.31; 'file': 0.32; 'case,': 0.35; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'explain': 0.39; 'visual': 0.39; 'read': 0.60; 'first': 0.61; 'field': 0.63; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'believe': 0.68; 'received:50.22': 0.84 Date: Wed, 3 Apr 2013 21:52:26 -0500 From: Tim Chase To: Norman Clerman Subject: Re: question about csv.DictReader In-Reply-To: <846339ea-366a-4bb2-b234-0e03bf87489e@googlegroups.com> References: <846339ea-366a-4bb2-b234-0e03bf87489e@googlegroups.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365043854 news.xs4all.nl 6928 [2001:888:2000:d::a6]:47928 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42731 On 2013-04-03 18:26, Norman Clerman wrote: > Can anyone explain the presence of the characters "\xref\xbb\xbf" > before the first field contents "Holdings" ? (you mean "\xef", not "\xref") This is a byte-order-mark (BOM), which you can read about at [1]. In this case, it denotes the file as UTF-8 encoded. Certain programs insert these, though it's more important with UTF-16 or UTF-32 encodings where the byte-order and endian'ness actually matters. I believe Notepad and Visual Studio on Win32 were both offenders when it came to inserting unbidden BOMs. -tkc [1] http://en.wikipedia.org/wiki/Byte_order_mark