[xml] How to provide the encoding throw the python API

Hi again,

Is it possible to provide the encoding through the python API to the html parser?

This question arises because sometimes the html files are xhtml ones, and the encoding is in a <?xml> tag that the parser ignores.
As the html parser ignores this tag, so I see two possible actions here:

which option do you think is more suitable?

Thanks, César

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]