[4suite] Setting the encoding error handler
nico
nicolas.marsgui at libertysurf.fr
Sat Nov 4 05:15:37 MST 2006
Hello,
When applying a stylesheet with an output encoding set to latin1, the
compilation raises the error UnicodeEncodeError: 'latin-1' codec can't
encode character u'\u201c'.
It's a normal behaviour, but would it be possible to add an
attribute/method to the Processor class so that the user could choose the
codecs error handling to use?
Another common XSLT behaviour (xsltproc, xalan) is to apply the
'xmlcharrefreplace' error handling so that the file still compiles even if
some entities cannot be translated.
What do you think?
Regards,
BG
More information about the 4suite
mailing list