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


Groups > comp.lang.python > #34963

Re: Unicode

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tolidtm@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'encode': 0.09; 'errors,': 0.09; 'failure.': 0.09; 'given,': 0.09; 'logic': 0.09; 'portable': 0.09; 'unicode,': 0.09; 'url:unicode': 0.09; 'cc:addr:python- list': 0.10; '"use': 0.16; 'mean,': 0.16; 'string:': 0.16; 'subject:Unicode': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'using,': 0.16; 'string': 0.17; 'saying': 0.18; 'code.': 0.20; 'all,': 0.21; 'trying': 0.21; 'not,': 0.21; 'received:209.85.214.174': 0.21; 'cc:2**0': 0.23; 'example': 0.23; 'demonstrate': 0.23; 'this:': 0.23; "haven't": 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; 'run': 0.28; 'indentation': 0.29; 'reduced': 0.29; 'code': 0.31; 'received:google.com': 0.34; 'thanks': 0.34; 'problem,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'wanted': 0.36; 'url:org': 0.36; 'modules': 0.36; "didn't": 0.36; 'skip:p 20': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'gives': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'first': 0.61; 'here:': 0.62; 'back': 0.62; 'solve': 0.62; 'helps': 0.63; '8bit%:38': 0.65; 'excellent.': 0.84
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:content-transfer-encoding; bh=1M0xkUaFtQlQYcO0wC5rBUGuhOQl0zY3e5zYSpU8V+s=; b=GzBlRw/yOx5pFjBVTFyLCQZLu7Kqowr+5+K76eQeo0uEltv65E4+ih8gvf+e9gUwGi Uhhw+RQMpaG8tFggKgYXey509GnaDQbFZwzROW9Io/Guvo1yPV06kTQxdOY4YRUSY2y4 GIjI9sfF2SovlMCHET3x84qEB3x3qhOUGHvZ6a/p8feeESXU/lBLw52aNNfUVyhW7xiG 0Qf4PrrH2a0e6Hazg0COkegUAVO+NwIthMJcjrVoQMmm0ephlY+HIYeNwENpQ30soAun SLWLpWxETdt5jYpvBrcNPVyy2tWUbCjV9EU5dNO2xUlWU5oF8ynfJM89ridZnE9EQGye wLfQ==
MIME-Version 1.0
In-Reply-To <50ceb674$0$29868$c3e8da3$5496439d@news.astraweb.com>
References <mailman.941.1355692240.29569.python-list@python.org> <50ceb674$0$29868$c3e8da3$5496439d@news.astraweb.com>
Date Mon, 17 Dec 2012 09:59:13 +0100
Subject Re: Unicode
From Anatoli Hristov <tolidtm@gmail.com>
To "Steven D'Aprano" <steve+comp.lang.python@pearwood.info>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
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 <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.949.1355734762.29569.python-list@python.org> (permalink)
Lines 37
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1355734762 news.xs4all.nl 6852 [2001:888:2000:d::a6]:37146
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:34963

Show key headers only | View raw


> What happens when you do use UTF-8?
This is the result when I encode the string:
" étroits, en utilisant un portable extrêmement puissant—le plus
petit et le plus léger des HP EliteBook pleine puissance—avec un
écran de diagonale 31,75 cm (12,5 pouces), idéal pour le
professionnel ultra-mobile.
"
No accents
>
> What do you mean, "use UTF-8"?

Trying to encode the string
>
>
> To learn about Unicode, start here:
>
> http://www.joelonsoftware.com/articles/Unicode.html
>
> If that helps you solve the problem, excellent. If not, please come back
> with your questions, but first read this:
I will try to understand the logic :)

>
> http://www.sscce.org/
>
> As given, we cannot answer your question easily, or at all, because we
> cannot run your code. It gives indentation errors, you don't tell us what
> modules you're using, and you haven't reduced the example down to the
> critical parts that demonstrate the failure.
I didn't wanted to include all my code as it is 15K. and also I know
my code is crappy and you will start blaming and saying that my code
is crap.- and I know it !

Thanks

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


Thread

Unicode Anatoli Hristov <tolidtm@gmail.com> - 2012-12-16 22:10 +0100
  Re: Unicode Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-12-17 06:06 +0000
    Re: Unicode Anatoli Hristov <tolidtm@gmail.com> - 2012-12-17 09:59 +0100
    Re: Unicode Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-12-17 01:28 -0800
    Re: Unicode Anatoli Hristov <tolidtm@gmail.com> - 2012-12-17 10:45 +0100
    Re: Unicode Vlastimil Brom <vlastimil.brom@gmail.com> - 2012-12-17 11:02 +0100
    Re: Unicode Anatoli Hristov <tolidtm@gmail.com> - 2012-12-17 11:17 +0100
    Re: Unicode Vlastimil Brom <vlastimil.brom@gmail.com> - 2012-12-17 11:55 +0100
    Re: Unicode Anatoli Hristov <tolidtm@gmail.com> - 2012-12-17 12:14 +0100
    Re: Unicode Vlastimil Brom <vlastimil.brom@gmail.com> - 2012-12-17 12:56 +0100
    Re: Unicode Anatoli Hristov <tolidtm@gmail.com> - 2012-12-17 18:43 +0100
    Re: Unicode Dave Angel <d@davea.name> - 2012-12-17 13:07 -0500
    Re: Unicode Anatoli Hristov <tolidtm@gmail.com> - 2012-12-17 19:36 +0100
      Re: Unicode Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-12-18 00:07 +0000
    Re: Unicode Vlastimil Brom <vlastimil.brom@gmail.com> - 2012-12-17 20:55 +0100
    Re: Unicode Anatoli Hristov <tolidtm@gmail.com> - 2012-12-17 21:00 +0100
    Re: Unicode Dave Angel <d@davea.name> - 2012-12-17 16:09 -0500
      Re: Unicode Hans Mulder <hansmu@xs4all.nl> - 2012-12-17 23:02 +0100
        Re: Unicode Anatoli Hristov <tolidtm@gmail.com> - 2012-12-17 23:33 +0100
    Re: Unicode Terry Reedy <tjreedy@udel.edu> - 2012-12-17 17:03 -0500
    Re: Unicode Anatoli Hristov <tolidtm@gmail.com> - 2012-12-17 23:31 +0100

csiph-web