Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'encoding': 0.05; 'subject:text': 0.05; 'advocate': 0.07; 'laura': 0.07; 'creighton': 0.09; 'subject:question': 0.10; 'cc:addr:python- list': 0.11; 'ah,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'recognise': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'that.': 0.31; '25,': 0.31; 'fixing': 0.31; "can't": 0.35; 'case,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'level': 0.37; 'problems': 0.38; 'sure': 0.39; 'even': 0.60; 'tell': 0.60; 'french': 0.61; 'pick': 0.64; 'places': 0.64; 'between': 0.67; '"just': 0.84; '2015': 0.84; 'sporting': 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=RnfSHuHV2E3ThUwo4wKD/039FH86jyz325BEBhzIYDM=; b=vmZT9rRjvGl/BQy95fIybVqrCk7evSQoWwxSV4OPZDR/UCMaIMtNaS6xHrMejARhgT zHoDABEdgGH/uZTIqn+gVoN0tMOtHOplkLb/GtNcrROji1eDzDFBWt2/AGgE5g4KQVMj jYjZ5c5ikL6KrskjLSUIvTDjiqgwY3rF6x65mh1dmhy11E/K8EMhSgrN/6lS0V1BF1rk QXRo1lxMmoghjoFntt83PbJufgAlKL9d7B8+GyI7Yvv3N3cJsv19hI2ET7d/Oe/I6uiZ 6FzqmYCSZiZ3VTbvj1nT33vrIlI30tJY0N5xLpsILfq7HfWKU56AjHqjijJo8vaRvzr1 jbGw== MIME-Version: 1.0 X-Received: by 10.107.33.11 with SMTP id h11mr21099393ioh.53.1424790642277; Tue, 24 Feb 2015 07:10:42 -0800 (PST) In-Reply-To: <201502241507.t1OF7aUm018883@fido.openend.se> References: <54EC5FA4.6070703@davea.name> <201502241455.t1OEtffT016452@fido.openend.se> <201502241507.t1OF7aUm018883@fido.openend.se> Date: Wed, 25 Feb 2015 02:10:42 +1100 Subject: Re: Newbie question about text encoding From: Chris Angelico Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424790645 news.xs4all.nl 2913 [2001:888:2000:d::a6]:38595 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86324 On Wed, Feb 25, 2015 at 2:07 AM, Laura Creighton wrote: >>Can you be sure it's Latin-1? I'm not certain of that. In any case, I >>never advocate fixing encoding problems by "just do this and it'll all >>go away"; you have to understand your data before you can decode it. >> >>ChrisA > > I can, I speak French and I recognise the data. It's French place names, > places where sporting events are held. :) Ah, okay. :) But even with that level of confidence, you still have to pick between Latin-1 and CP-1252, which you can't tell based on this one snippet. Welcome to untagged encodings. ChrisA