Michael Butscher schrieb:
> Is this a bug or is SGMLParser not meant to be used for unicode strings
> (it should be documented then)?
In a sense, SGML itself is not meant to be used for Unicode. In SGML,
the document character set is subject to the SGML application. So what
specific character a c
Michael Butscher wrote:
> if I execute the following two lines in Python 2.5 (to feed in a
> *unicode* string):
>
> import sgmllib
> sgmllib.SGMLParser().feed(u'')
source documents are encoded byte streams, not decoded Unicode
sequences. I suggest reading up on how Python's Unicode string
ty
Hi,
if I execute the following two lines in Python 2.5 (to feed in a
*unicode* string):
import sgmllib
sgmllib.SGMLParser().feed(u'')
I get the exception:
Traceback (most recent call last):
File "", line 1, in
sgmllib.SGMLParser().feed(u'')
File "C:\Programme\Python25\Lib\sgmllib.py