[Templates] Incorrect UTF-8 string escape.

Bill Moseley moseley@hank.org
Mon, 9 Jul 2007 07:17:43 -0700


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?

-- 
Bill Moseley
moseley@hank.org