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


Groups > comp.lang.python > #35285

Re: how to detect the encoding used for a specific text data ?

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 <oscar.j.benjamin@gmail.com>
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 <c6eeb756-65be-4c50-88a8-1f94bd772fe8@googlegroups.com>
References <c6eeb756-65be-4c50-88a8-1f94bd772fe8@googlegroups.com>
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 <oscar.j.benjamin@gmail.com>
To iMath <redstone-cold@163.com>
Content-Type text/plain; charset=ISO-8859-1
Cc Python List <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 <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1144.1356093497.29569.python-list@python.org> (permalink)
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

Show key headers only | View raw


On 20 December 2012 11:57, iMath <redstone-cold@163.com> 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?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

how to detect the encoding used for a specific text data ? iMath <redstone-cold@163.com> - 2012-12-20 03:57 -0800
  Re: how to detect the encoding used for a specific text data ? iMath <redstone-cold@163.com> - 2012-12-20 04:06 -0800
  Re: how to detect the encoding used for a specific text data ? Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2012-12-20 14:48 +0200
  Re: how to detect the encoding used for a specific text data ? "Stefan H. Holek" <stefan@epy.co.at> - 2012-12-20 14:17 +0100
    Re: how to detect the encoding used for a specific text data ? iMath <redstone-cold@163.com> - 2012-12-20 05:50 -0800
      Re: how to detect the encoding used for a specific text data ? Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2012-12-20 16:10 +0200
    Re: how to detect the encoding used for a specific text data ? iMath <redstone-cold@163.com> - 2012-12-20 05:50 -0800
  Re: how to detect the encoding used for a specific text data ? Christian Heimes <christian@python.org> - 2012-12-20 15:19 +0100
  Re: how to detect the encoding used for a specific text data ? rurpy@yahoo.com - 2012-12-20 09:48 -0800
  Re: how to detect the encoding used for a specific text data ? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-12-21 12:38 +0000
  Re: how to detect the encoding used for a specific text data ? Dave Angel <d@davea.name> - 2012-12-21 09:14 -0500

csiph-web