Entry content as unicode

Andrey Bondarenko <abone27-JGs/[email protected]> Tue, 28 Apr 2009 18:12:44 +0600
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
Hi everyone,

I'm trying to implement a SimpleTAL-based renderer plugin for pyblosxom.
SimpleTAL requires TALES context contain only Unicode strings, but most
of entry parsers read entry content as byte strings without conversion.

Currently I'm converting to Unicode within the the plugin, but I'm not sure
which encoding should I use. Should I get it from blog locale or from
blog_encoding parameter?

P.S.
It is probably better to do conversion in entry parsers, but in this case
we need to modify entry parsers plugin, am I right?


Thanks,
Andrey Bondarenko

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf