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)

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Marko Rauhamaa <marko@pacujo.net>
Newsgroups comp.lang.python
Subject Re: python 2.7 and unicode (one more time)
Date Fri, 21 Nov 2014 00:11:25 +0200
Organization A noiseless patient Spider
Lines 17
Message-ID <871tox8quq.fsf@elektro.pacujo.net> (permalink)
References <m4kcu8$ta8$1@ger.gmane.org> <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>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="18083"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wd3W8wANg4AW7QmXQfTNV"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock sha1:tkuWzcjk30XkvUvf9J0Lv064sUA= sha1:7+21LUDYsg+06cxuTRLJC77Yk8M=
Xref csiph.com comp.lang.python:81133

Show key headers only | 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