[Catalyst] utf8 chars in form elements
A. Pagaltzis
pagaltzis at gmx.de
Mon Nov 28 17:52:45 CET 2005
* Johan Lindström <johanl at DarSerMan.com> [2005-11-28 11:20]:
> 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.
Sounds like the string was never marked as Unicode to begin with,
in which case encode_entities() sees the two bytes as two
characters.
Questions to investigate:
1. Is the input string a Unicode or 8-bit string?
2. Is the string that comes back from SQLite a Unicode or 8-bit
string?
3. If the string that comes back from SQLite is a Unicode string,
is it double-encoded, or is it correct?
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Catalyst
mailing list