[cgiapp] UTF-8 output
Mark Rajcok
mrajcok at gmail.com
Sun Feb 28 00:12:22 EST 2010
On Mon, Nov 2, 2009 at 9:27 AM, Michael Peters <mpeters at plusthree.com>wrote:
> > And is there no better way for the template output than to post_process
> > the whole template? Is there no way to get the output of tt_process as
> > UTF-8 so that there is no post_processing necessary?
>
> I have a patched HTML::Template that reads in the templates as UTF8, my
> db connections are all UTF8 and I decode the CGI params as UTF8. As long
> as all your inputs are UTF8 decoded then you don't need to explicitly
> encode the output.
>
Michael, care to share your patch for HTML::Template?
I didn't realize I could get away with not encoding the output if everything
is decoded as UTF-8 coming in... I'll have to try that.
-- Mark R.
More information about the cgiapp
mailing list