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.
Hi! А have a problem with CGI plugin for Template. All my russian characters (received from browser possibly without UTF-8 flag in Perl) after POST are broken, i.e. if i post two russian characters in my test, then i receive four strange characters. I think my problem related with CGI.pm - it does not know about encoding of submitted characters and do not perform Encode::decode on this characters. Data lives in CGI.pm internals as bytes (not a characters) and when it joined with truly UTF-8 string (template source, for example), it autoconverted from Latin-1 to UTF-8 by default. But data is already in UTF-8, not in Latin-1! Test case is available for public: http://devel2.rian.ru/search/ (trailing slash is a MUST) User: tt Password: test Sorry guys - this URL is password protected. You can see three bold russian characters (last 3 characters in russian alphabet) which is hardcoded in template source. This is truly UTF-8 string and it has valid length - 3 characters. You can copy this characters to form, submit form and see the result. I am using Template Toolkit version 2.14 and Apache::Template module for processing my templates under mod_perl (version 1.29 under Apache 1.31). All of my templates are UTF-8 (with properly inserted EFBBBF AKA BOM in begin of each template file). I use default settings: PerlModule CGI PerlModule Apache::Template AddDefaultCharset UTF-8 <Location /search> SetHandler perl-script PerlHandler Apache::Template </Location> Test case template is attached to this message. -- WBR, Andrey Brindeew. "No one person can understand Perl culture completely" (C) Larry Wall.
This is a message from the MailScanner E-Mail Virus Protection Service ---------------------------------------------------------------------- The original e-mail message contained potentially dangerous content, which has been removed for your safety. The content is dangerous as it is often used to spread viruses or to gain personal or confidential information from you, such as passwords or credit card numbers. If you wish to receive a copy of the original email, please e-mail helpdesk and include the whole of this message in your request. Alternatively, you can call them, with the contents of this message to hand when you call. At Wed Jan 12 17:22:40 2005 the content filters said: MailScanner: Found a form in HTML message Note to Help Desk: Look on the MailScanner on cat.ourshack.com in /var/spool/MailScanner/quarantine/20050112 (message 1ComCc-000D8o-8k). -- Postmaster MailScanner thanks transtec Computers for their support
