Am 13.04.2006 um 01:38 schrieb John Hampton:
Working on the blog plugin, I stumbled over yet another unicode related issue. It is addressed in ticket #3024 [1] and the patch there fixes the issue [2]. From reading the cboos' comments, it appears that my macro is returning a str object instead of a unicode object. My guess is that is because I'm having clearsilver render a page and then am returning that result.

My real question is, who's responsibility should it be to make sure the data is unicode? Should I wrap the return value from the req.hdf.render() function in to_unicode? or should I just rely on the formatter fixing my input?

If you want your macro/plugin to also work under Trac 0.9.x, you'll have to return the output UTF-8 encoded (i.e., as returned from hdf.render()). The formatter needs to be able to deal with that (and cboos has checked that in already IIUC).

Cheers,
Chris
--
Christopher Lenz
  cmlenz at gmx.de
  http://www.cmlenz.net/

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

Reply via email to