[Catalyst] Class::DBI::AsForm

Mikhail Shevchuk sms512 at ms.tusur.ru
Sat Nov 26 09:58:37 CET 2005


On Thu, Nov 24, 2005 at 11:56:43PM +0600, Mikhail Shevchuk wrote:
> 	May be this is not exactly catalyst problem, but I hope that there
> are some people here who know the truth :)
> 
> 	When I use modules like Class::DBI::AsForm, HTML::Tree, etc, my text
> data in koi8-r encoding became wrong. For example, when I proccessing 
> 8-bit char data as "[% item.to_field(column).as_XML %]" a get some wrong 
> numeric rows in html output. (úÀÚ...) Is there any
> thoughts about it?

This happened because cyrillic chars identified as unsafe characters. It
is simply solved by defining unsafe characters
	$h->as_HTML('<>&'); instead of $h->as_XML()
All unsafe characters are encoded into HTML entities.

Thanks.



More information about the Catalyst mailing list