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


Groups > comp.lang.python > #81133

Re: python 2.7 and unicode (one more time)

From Marko Rauhamaa <marko@pacujo.net>
Newsgroups comp.lang.python
Subject Re: python 2.7 and unicode (one more time)
Date 2014-11-21 00:11 +0200
Organization A noiseless patient Spider
Message-ID <871tox8quq.fsf@elektro.pacujo.net> (permalink)
References (1 earlier) <m4kn66$ma3$1@ger.gmane.org> <1416491999.209592.193345213.3A6FF9A4@webmail.messagingengine.com> <m4l20h$toc$1@ger.gmane.org> <CAPTjJmqjUGmTA-0JXrkeKYLeShmT=mOE=c38o8YD7XheCK_5Kw@mail.gmail.com> <mailman.16058.1416518997.18130.python-list@python.org>

Show all headers | View raw


Ethan Furman <ethan@stoneleaf.us>:

> If your unicode string happens to contain a base64 encoded .png, then
> you could decode that into bytes. ;)

You could embed your PNG file in XML in binary form as CDATA. Then, your
"characters" would represent 8- or 16-bit integers. You just need to
replace all accidental occurrences of 

   ]]>

with

   ]]>]]><![CDATA[


Marko

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


Thread

Re: python 2.7 and unicode (one more time) Ethan Furman <ethan@stoneleaf.us> - 2014-11-20 13:29 -0800
  Re: python 2.7 and unicode (one more time) Marko Rauhamaa <marko@pacujo.net> - 2014-11-21 00:11 +0200

csiph-web