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


Groups > comp.lang.python > #45251

Re: [Chicago] Getting ASCII encoding where unicode wanted under Py3k

References <CAE6_B5TDWrv4riQ27xQ+ENQHV=0ziryagsaXMRgNfwQGxmfDAA@mail.gmail.com>
From Carl Karsten <carl@personnelware.com>
Date 2013-05-13 12:01 -0500
Subject Re: [Chicago] Getting ASCII encoding where unicode wanted under Py3k
Newsgroups comp.lang.python
Message-ID <mailman.1633.1368464515.3114.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, May 13, 2013 at 10:59 AM, Jonathan Hayward
<jonathan.hayward@pobox.com> wrote:

That is way too much code for me to try and dig into.

Remove everything not needed to demo it.  Replace big strings with
little strings.

My guess is it should be 1-3 lines, like

>>> print('123%(a)s' % {'a': u'\u0161' } )
123ลก

But that works.  may need a few other lines, or something.
It is also possible that there is a setting in your OS that has an effect.

What OS?

--
Carl K

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


Thread

Re: [Chicago] Getting ASCII encoding where unicode wanted under Py3k Carl Karsten <carl@personnelware.com> - 2013-05-13 12:01 -0500

csiph-web