[Catalyst] utf8 chars in form elements

Mikhail Shevchuk sms512 at ms.tusur.ru
Mon Nov 28 11:48:24 CET 2005


On Mon, Nov 28, 2005 at 11:05:58AM +0100, Johan LindstrЖm wrote:
> Class::DBI::AsForm emits HTML::Element objects. The problem seems to be 
> HTML::Element's as_HTML method which calls 
> HTML::Entities::encode_entities() and interprets the ? as two chars.

This happend not only with utf chars, but even with some 8-byte
characters. For example with cyrillic koi8-r. I've written about this in
thread Class::DBI::AsForm.

> My solution was to explicitly leave everything alone, except for the 
> "normal" HTML chars:
> [% item.to_field(column).as_HTML('<>&"\'') %]  -->  Lindstr?m

I had the same idea and that worked. 



More information about the Catalyst mailing list