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: 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: References: Date: Tue, 8 Jan 2013 00:04:43 +1100 Subject: Re: Problem with Unicode char in Python 3.3.0 From: Chris Angelico 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 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: 1357563892 news.xs4all.nl 6913 [2001:888:2000:d::a6]:60397 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36347 On Mon, Jan 7, 2013 at 11:57 PM, Franck Ditter wrote: > <<< print('\U0001d11e') > Traceback (most recent call last): > File "", line 1, in > 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