Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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; 'utf-8': 0.07; 'versions,': 0.07; '22,': 0.09; 'received:internal': 0.09; 'subject:2.7': 0.09; 'windows': 0.15; '"every': 0.16; '(there': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'pair,': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'subject:unicode': 0.16; 'surrogate': 0.16; 'subject:python': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'certainly': 0.24; 'unicode': 0.24; '(or': 0.24; 'header:In- Reply-To:1': 0.27; 'chris': 0.29; 'character': 0.29; 'characters': 0.30; 'subject:time': 0.33; 'maybe': 0.34; 'received:66': 0.35; 'subject: (': 0.35; 'display': 0.35; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'subject:one': 0.36; 'error.': 0.37; 'received:10': 0.37; 'problems': 0.38; 'nov': 0.38; 'to:addr :python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.61; 'you.': 0.62; "you'll": 0.62; 'header:Message-Id:1': 0.63; 'subject:more': 0.64; 'obvious': 0.74; '2014,': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:x-sasl-enc:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=mesmtp; bh=5uUUPWPRk599kr8v1MBY6bBlK0w=; b=OE57 ij4CQUdUr+YDL0PpOvL142v90Nh970l9qIvdU2VYiovbZV+OJJp9kxLy10bHR7i/ 8hK5L0sEK2IQN22YcV6dCNUQpE3MRZqaPTxzd3f0uFc9CmUyv2sHPwfxCrPTjPgu h4Qa2D/sZ4pyZF5ptYr8U0IAGB1NQ3M3f4Wp2v0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:in-reply-to :references:subject:date; s=smtpout; bh=5uUUPWPRk599kr8v1MBY6bBl K0w=; b=HUCtxvzNX2G6fAUb/XiBP2An/35DpipHObQL6+/oyYcWVUBvsojlh8fJ CSYWc09BzT3E4+zWr9E4+qyzBjCchyCPEblOfiJS5RgZuFYNe3M+a53Xiwo7ahnn cCb7KKPTTZ2VkZs7nRJWpyikIBLODyy7thP0cTEB/lb/1nfFqn0= X-Sasl-Enc: Qv7mPXzIAZlsNoNKpzjTD/t7qX2HNlSj3hrjPDiWqSJ+ 1416712256 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-a419c8a0 In-Reply-To: References: <1416491999.209592.193345213.3A6FF9A4@webmail.messagingengine.com> <87ppch8zvx.fsf@elektro.pacujo.net> <87k32p6ow8.fsf@elektro.pacujo.net> <871towik8j.fsf@elektro.pacujo.net> <5470134c$0$12986$c3e8da3$5496439d@news.astraweb.com> <877fyn68m1.fsf@elektro.pacujo.net> <547094a6$0$12984$c3e8da3$5496439d@news.astraweb.com> <87y4r348uf.fsf@elektro.pacujo.net> <87mw7j3z2r.fsf@elektro.pacujo.net> <1416707557.2242907.194259261.18485F96@webmail.messagingengine.com> Subject: Re: python 2.7 and unicode (one more time) Date: Sat, 22 Nov 2014 22:10:56 -0500 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416712258 news.xs4all.nl 2830 [2001:888:2000:d::a6]:35744 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 5413 X-Received-Body-CRC: 2326949131 Xref: csiph.com comp.lang.python:81318 On Sat, Nov 22, 2014, at 21:11, Chris Angelico wrote: > Is that true? Does WriteConsoleW support every Unicode character? It's > not obvious from the docs whether it uses UCS-2 or UTF-16 (or maybe > something else). I was defining "every unicode character" loosely. There are certainly display problems (there are display problems with wide characters on non-CJK windows versions, too), but if you write a surrogate pair, you'll get something that can copy to the clipboard as a surrogate pair, and get the same thing that writing a non-BMP UTF-8 character with codepage 65001 will give you. And you certainly won't get an error.