Re: Entry content as unicode

will <[email protected]> Tue, 28 Apr 2009 10:18:07 -0400
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
I'm currently pushing for utf-8 across the board for Pyblosxom 1.5.  So 
assuming utf-8 or using the blog_encoding property should be the right 
thing to do.


Andrey Bondarenko wrote:
> 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