[XML-SIG] cStringIO

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Fri, 25 May 2001 22:15:42 +0200


>   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.

One issue of reading UTF-8, whether from cStringIO or elsewhere, might
break result strings inside a character (i.e. between character
boundaries). So be careful with applying unicode() or .decode on such
a string - you may have to save some bytes for the next .read() call.

Regards,
Martin