Add ENCODING => 'UTF8' to your new() call.

On Wed, Sep 22, 2010 at 2:02 PM, Paul Talacko <[email protected]>wrote:

>
> Sorry, forgot to reply-to-all
>
> ---------- Forwarded message ----------
>
> On Wed, Sep 22, 2010 at 10:34 PM, Bill Moseley <[email protected]> wrote:
>
>> I don't normally have TT output directly,
>>
>
> If I use a scalar ref as the third argument of 'process', the result is the
> same. The script I've attached is for demo purposes.
>
>
>> but what if you add this?
>>
>> binmode STDOUT, ':utf8';
>>
>
> Then the output is still a mess, but slightly different:
>
> ___ Replacing just ASCII ___
>
> In template file: a à â c ç e é è ê ë i ï o ô u û ù
> Replaced items  : a c e i o u
>
>
> ___ Replacing with explicit unicode character ___
> In template file: a à â c ç e é è ê ë i ï o ô u û ù
> Replaced items  : ☺ a à â c ç e é è ê ë i ï o ô u û ù
>
>
> ___ Replacing with written unicode - we are 'use-ing' utf8 ___
> In template file: a à â c ç e é è ê ë i ï o ô u û ù
> Replaced items  : a à â c ç e é è ê ë i ï o ô u û ù
>
> As you can see it's the utf8 in the template that is hosed.
>
> Thanks
>
> Paul
>
>>
>>
>
>
> _______________________________________________
> templates mailing list
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates
>
>


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

Reply via email to