[Devel] Charset problems with UTF-8 and mxtidy - and a fix
Per Ottar Ribe Pahr
perottar at gmail.com
Tue May 10 21:04:02 EST 2005
Using the latest nightly build i ran into problems with the utf-8
output breaking after installing mxtidy. Setting encoding to utf-8 in
the config does not help.
The problem is that mxtidy expects ascii input as default. This can
be fixed by changing feedparser.py line 944 from:
nerrors, nwarnings, data, errordata = mxtidy.tidy(data,
output_xhtml=1, numeric_entities=1, wrap=0)
into:
nerrors, nwarnings, data, errordata = mxtidy.tidy(data,
output_xhtml=1, numeric_entities=1, wrap=0, char_encoding="utf8")
--
Per Ottar
More information about the Devel
mailing list