On Fri, Jul 25, 2008 at 12:15:50AM +0900, 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 ;)

It's documented in svn:

http://template-toolkit.org/svnweb/Template2/revision/?rev=1113

http://template-toolkit.org/svnweb/Template2/revision/?rev=1114


> 
> 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'); )

UNICODE should be set automatically based on your Perl version.
Not sure why it should be overridden by the user.

I wonder if UNICODE should be based on if the Encode module can be
loaded or not.



> 
> 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
> [EMAIL PROTECTED]
> http://e8y.net/
> 
> _______________________________________________
> templates mailing list
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates
> 

-- 
Bill Moseley
[EMAIL PROTECTED]
Sent from my iMutt


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

Reply via email to