Re: [Templates] Patch: Full unicode support for TT under 5.8

[prev] [thread] [next] [Date index for 2004/07/23]

From: Stas Bekman
Subject: Re: [Templates] Patch: Full unicode support for TT under 5.8
Date: 22:03 on 23 Jul 2004
>>+        if ($] > 5.007 && utf8::is_utf8($perlcode)) {

A word of caution. Avoid using utf8 and use Encode instead. Users can 
always get the latest Encode from CPAN, which is not the case with utf8, 
which is internal to perl. There are quite a few bugs in the utf8 
package supplied by the older perl 5.8.x versions. At least one that I 
have hit is using utf8::decode and -T. Take a look at this thread:

http://marc.theaimsgroup.com/?t=108547699700004&r=1&w=2

This bug was fixed only in perl 5.8.5:
http://marc.theaimsgroup.com/?t=108644987200003&r=1&w=2

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

Re: [Templates] Patch: Full unicode support for TT under 5.8
Stas Bekman 22:03 on 23 Jul 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52