[lxml-dev] Passing UTF-8 bytestrings to lxml
Stefan Behnel
stefan_ml at behnel.de
Mon Aug 4 20:10:59 CEST 2008
Hi,
John J Lee wrote:
> So, my question: were I also to change the function funicode (also in
> apihelpers.pxi) to return UTF-8 bytestrings, would lxml always return
> UTF-8 bytestring objects from all of its API calls?
funicode() is a very central function that is called whenever a UTF-8 byte
sequence is to be converted to a Python string. I won't give you a guarantee
that everything will work if you change it, but at least I don't see a major
problem at first sight.
Stefan
More information about the lxml-dev
mailing list