Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!rt.uk.eu.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.nosignal.org!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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'context': 0.05; 'subject:text': 0.05; 'list?': 0.07; 'cc:addr:python-list': 0.10; 'encoding': 0.15; 'cc:name:python list': 0.16; 'wrote:': 0.17; 'detect': 0.17; 'cc:2**0': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'question': 0.27; 'message- id:@mail.gmail.com': 0.27; 'related': 0.30; 'normally': 0.30; 'received:209.85.215.46': 0.30; 'subject: ?': 0.30; 'december': 0.32; 'subject:data': 0.33; 'received:google.com': 0.34; 'text': 0.34; 'received:209.85': 0.35; 'data.': 0.36; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'possible.': 0.38; 'header:Received:5': 0.40; 'note:': 0.64; 'to:addr:163.com': 0.91 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:to :cc:content-type; bh=qrUs7v3nt30cHhk6sCQjsKvfKq4ciKrR3S314e+Xse4=; b=GhN1BLGXgjFSiFg14EcfHGadj2VJHrAbx1EsY1FQQvkRn21RooSb7T7e8JyQzmU6NE tOYWdkcsIf7H1IY0brZNgCv6EUm30LRyA1SjrIP3+3YXnSOYjWI5nBYITcp/LeDZo7oL TtAZe6GpnP2e915rvdF99H1sM6ynVif1xIi4Uwi3SRo20LMn9rYdAlpi2vriBcIyUdOM gUdlLeX4bo6kOb1ho3OovZjq8a77e1oBJpBpdNWzT+juAD7q+Gg8pXgAX4WIP3tCusHq M4RFUlFo1X3697xYNqSpXbjsEsmjBYr1YiHc3TU4tusDIrKBrcy/dN5buGAiEcVHMJGS FEow== MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 21 Dec 2012 12:38:10 +0000 Subject: Re: how to detect the encoding used for a specific text data ? From: Oscar Benjamin To: iMath Content-Type: text/plain; charset=ISO-8859-1 Cc: Python List 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: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356093497 news.xs4all.nl 6877 [2001:888:2000:d::a6]:36059 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35285 On 20 December 2012 11:57, iMath wrote: > how to detect the encoding used for a specific text data ? Normally encoding is given in some way by the context of the data. Otherwise no general solution is possible. On a related note: how to answer question with no context on mailing list?