[XML-SIG] cStringIO

Fred L. Drake, Jr. fdrake@acm.org
Fri, 25 May 2001 10:27:58 -0400 (EDT)

Rich Salz writes:
 > Are there any guidelines as to when it isn't safe to use cStringIO?  As
 > long as everyone sticks to UTF-8 it should work, right?  I know that
 > incoming XML might have some other encoding, but if I'm using SAX or
 > DOM, it will have been converted, right?

  cStringIO works with 8-bit strings, regardless of the encoding.  It
does not work with non-ASCII Unicode strings.  Fixing that is on my
plate, but I don't have time allotted for it yet.


Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Digital Creations