Edward K. Ream schrieb:
> Happily, the workaround is easy. Replace theFile with:
>
> # Use cStringIo to avoid a crash in sax when inputFileName has unicode
> characters.
> s = theFile.read()
> theFile = cStringIO.StringIO(s)
>
> My first attempt at a workaround was to use:
>
> s = theFile.read
Happily, the workaround is easy. Replace theFile with:
# Use cStringIo to avoid a crash in sax when inputFileName has unicode
characters.
s = theFile.read()
theFile = cStringIO.StringIO(s)
My first attempt at a workaround was to use:
s = theFile.read()
parser.parseString(s)
but the expat pars