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


Groups > comp.lang.python > #36347

Re: Problem with Unicode char in Python 3.3.0

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'utf-8': 0.07; 'accepts': 0.09; 'encode': 0.09; 'windows,': 0.09; 'codec': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'happily': 0.16; 'range.': 0.16; 'subject:Problem': 0.16; 'subject:Unicode': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'unicode': 0.17; 'jan': 0.18; '"",': 0.22; 'linux': 0.24; 'header:In-Reply-To:1': 0.25; 'supported': 0.26; '(most': 0.27; 'message-id:@mail.gmail.com': 0.27; 'though.': 0.29; 'case,': 0.29; 'character': 0.29; 'file': 0.32; 'idle': 0.33; 'traceback': 0.33; 'handle': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'subject:with': 0.36; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'skip:u 10': 0.60; 'different': 0.63; '2013': 0.84; '<<<': 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 :content-type; bh=ePnawjgNPOsWoI2DV9BaeWzMatB7stwygZZQVH5cpmo=; b=yNxD1ycEwtIoZ5QEkOjrltY3Ngue8fWBwztNtcI0a5BZtihONxOpoJXGupT5bKELnH Tawyn1QlN9aLCgdDLf+6N4c0h/K7smZ7yJj/Wx0znyp1+H80HtvoOl+nM5J6r0q26mLp ANokksVJhv6h6ttufRNWPlEYJO1ejrQMhzKoMnPdfEomb2aYALlE6CyWC/9C9+jhKJ8N K1P4LzH1Vv0FV7sqkJx3tUpGSwvogimOuUf+WGNNuEVKHrVF969q1LYVKi35Fdi9pOEM LzKHowihtmjlOMbxw0OqrPpvN7orT4v/QjrDsNzWTGWXo6Xo+bUbjBGz4pozauymrCRU PUJA==
MIME-Version 1.0
In-Reply-To <nobody-940F87.13572507012013@news.free.fr>
References <nobody-672426.17430906012013@news.free.fr> <mailman.175.1357492817.2939.python-list@python.org> <nobody-940F87.13572507012013@news.free.fr>
Date Tue, 8 Jan 2013 00:04:43 +1100
Subject Re: Problem with Unicode char in Python 3.3.0
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
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.217.1357563892.2939.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1357563892 news.xs4all.nl 6913 [2001:888:2000:d::a6]:60397
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:36347

Show key headers only | View raw


On Mon, Jan 7, 2013 at 11:57 PM, Franck Ditter <nobody@nowhere.org> wrote:
> <<< print('\U0001d11e')
> Traceback (most recent call last):
>   File "<pyshell#1>", line 1, in <module>
>     print('\U0001d11e')
> UnicodeEncodeError: 'UCS-2' codec can't encode character '\U0001d11e'
> in position 0: Non-BMP character not supported in Tk

That's a different issue; IDLE can't handle non-BMP characters. Try it
from the terminal if you can - on my Linux systems (Debians and
Ubuntus with GNOME and gnome-terminal), the terminal is set to UTF-8
and quite happily accepts the full Unicode range. On Windows, that may
well not be the case, though.

ChrisA

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


Thread

Problem with Unicode char in Python 3.3.0 Franck Ditter <nobody@nowhere.org> - 2013-01-06 17:43 +0100
  Re: Problem with Unicode char in Python 3.3.0 Peter Otten <__peter__@web.de> - 2013-01-06 18:03 +0100
  Re: Problem with Unicode char in Python 3.3.0 marduk <marduk@python.net> - 2013-01-06 12:10 -0500
    Re: Problem with Unicode char in Python 3.3.0 Franck Ditter <nobody@nowhere.org> - 2013-01-07 13:57 +0100
      Re: Problem with Unicode char in Python 3.3.0 Chris Angelico <rosuav@gmail.com> - 2013-01-08 00:04 +1100
      Re: Problem with Unicode char in Python 3.3.0 Terry Reedy <tjreedy@udel.edu> - 2013-01-07 08:12 -0500
      Re: Problem with Unicode char in Python 3.3.0 Terry Reedy <tjreedy@udel.edu> - 2013-01-08 03:40 -0500

csiph-web