[I18n-sig] Unicode-friendly StringIO?
Sun, 26 Nov 2000 13:26:48 -0700
4Suite has several objects, readers, that are used to convert HTML or XML to
DOM nodes. The base API for this is a fromStream method, which accepts any
file-like object. As a convenience, we also provide fromString, which uses
cStringIO to wrap a string for fromStream.
The problem is that cStringIO doesn't accept a Unicode object (throws an
exception), so there is no easy way to parse a unicode string to DOM.
Does anyone know of any version of or plans for cStringIO that would allow for
Uche Ogbuji Principal Consultant
email@example.com +1 303 583 9900 x 101
Fourthought, Inc. http://Fourthought.com
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python