On Wed, Jan 12, 2005 at 08:22:29PM +0300, Andrey Brindeew wrote:
> Warning: This message has had one or more attachments removed
> Warning: (index.html).
> Warning: Please read the "OurshackDotCom-Attachment-Warning.txt"
> attachment(s) for more information.
Ooh! Mail Scanner is so smarty :-)
So, the question is: what need I hack to get my form's data
properly (with UTF-8 flag enabled) in Template-Toolkit?
Missed attachment inlined below this line (without leading BOM):
<html>[% USE CGI; q = CGI.new %]
<head><title>UTF-8 testcase</title></head>
<body>
UTF-8 string from template:<b>
[% SET a = "п╜п╝п╞"; a; "</b>, length is: "; a.length %]<br/>
[% IF q.param('text') %]<p>POSTed data: [% q.param('text') %], length is [%
q.param('text').length %]</p>[% END %]
<form action="" method="POST">
<input name="text" type="text" size="6" value="[% q.param('text') %]">
<input type="submit" value="Submit">
</form>
</body>
</html>
--
WBR, Andrey Brindeew.
"No one person can understand Perl culture completely"
(C) Larry Wall.
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates