[lxml-dev] lxml parser encodings? What's supported?

John Krukoff jkrukoff at ltgc.com
Wed Sep 17 22:14:28 CEST 2008


On Wed, 2008-09-17 at 21:31 +0200, Stefan Behnel wrote:
> No, you've found a bug. The way the override input encoding is checked by the
> parser instantiation is simply wrong, it doesn't find any "standard" encoding
> (utf-8 or ASCII), neither does it find iconv encodings.
> 
> Here's a fix.
> 
> Stefan

FWIW, utf-8 does work. Here's some that I tried, and that worked for me:

utf8
utf16
iso-8859-1 through iso-8859-9
shift_jis

Just mentioning, since you said that utf8 doesn't work (I would have
noticed that a long time ago). Anyway, I'll give the patch a try. Thanks
for your always quick response!

-- 
John Krukoff <jkrukoff at ltgc.com>
Land Title Guarantee Company



More information about the lxml-dev mailing list