Hello,

On Mon, Jul 09, 2007 at 07:17:43AM -0700, Bill Moseley wrote:
> On Sat, Jul 07, 2007 at 03:41:13AM +0800, Gea-Suan Lin wrote:
> > Hello,
> > 
> > In Template/Filters.pm, function uri_filter:
> > 
> >     if ($] >= 5.008) {
> >         utf8::encode($text);
> >     }
> > 
> > If $text is already UTF-8 string (utf8::is_utf8($text) is true), then
> > this will break $text.
> 
> Why does the text need to be encoded to utf8 in the first place?

Why not ? Data stored in mysql is UTF-8, so the data retrieving from
mysql is of course UTF-8 string.

-- 
* Gea-Suan Lin  (public key: Using https://keyserver.pgp.com/ to search)
* If you cannot convince them, confuse them.           -- Harry S Truman

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to