[XML-SIG] cStringIO
Fred L. Drake, Jr.
fdrake@acm.org
Fri, 25 May 2001 12:29:31 -0400 (EDT)
Rich Salz writes:
> It looks to me (from skimming the code in cStringIO.c), that the code
> is 8bit transparent. I thought UTF-8 made all multi-byte values have
> the 8th bit on. So, if I'm using cStringIO I should be okay, if I'm
> just using cStringIO to transport data, or maybe do readline or
That's correct.
> similar. Once I need to look at individual characters, I'm hosed. But
> if I want to collect the value ofa bunch of TEXT_NODE elements and
> output them, wont' that work?
The *only* problem involves Unicode objects, not Unicode data
encoded in 8-bit strings. So if you're TEXT_NODE objects actually
contain 8-bit strings, it'll work just fine.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Digital Creations