> I think we should always know or make clear what is the encoding.
> If we really don't know, then we should not assume UTF-8 (which
> may or may not work, who knows), but rather use some "catch all"
> conversion (trac.util.to_unicode, namely).

One option would be the Universal Encoding Detector, but this may be
too much of a dependency for Trac. Pretty much guaranteed to get it
right, though.

http://chardet.feedparser.org/download/

Regards,

Manuzhai
_______________________________________________
Trac-dev mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-dev

Reply via email to