in reply to Template and Unicode (was: Re: Another Unicode/emoji question)
in thread Another Unicode/emoji question
#!/usr/bin/perl use warnings; use strict; use open OUT => ':encoding(UTF-8)', ':std'; use Template; 'Template'->new->process(\'SUMMARY:[% chr(128054) %] [% dog %] ὃ +6; Dog Face Test', {dog => "\x{1f436}", chr => \&CORE::chr});
Update: Added the chr sub.
|
|---|