[Templates] About UNICODE and ENCODING

Ayhan Ulusoy dev at ulusoy.name
Thu Jul 24 17:24:35 BST 2008


In which method call are these options used?


On 24 Jul, 2008, at 5:15 PM, Tomita wrote:

> Hi.
>
> About config of UNICODE and ENCODING,
> It's not documented yet but it's very usefull options.
> There are many people who do not know about 'UNICODE = 1'.
> I hope to document POD about this feature ;)
>
> e.g.
>
> Template::Manual::Config
>
> UNICODE
>
> This option is used to read the template as Unicode(Encode::decode- 
> ed).
> When the UNICODE is set to any true value
> and a template has BOM code, then template will be read as Unicode.
> ( Encode::decode('utf-*', 'template text'); )
>
> ENCODING
>
> When the UNICODE is set to any true value
> and a template does NOT have BOM code,
> then, If ENCODING is set,
> template is decode by the encoding specified by ENCODING.
>
> UNICODE  => 1,
> ENCODING => 'utf-8',
>
> # grr sorry I can use Japan-English only
> # please do not use it as it is ;)
>
> -- 
> Tomita
> n.tomita at gmail.com
> http://e8y.net/
>
> _______________________________________________
> templates mailing list
> templates at template-toolkit.org
> http://mail.template-toolkit.org/mailman/listinfo/templates
>




More information about the templates mailing list