[Catalyst] Re: decoding in core (Was: [Announce]
Catalyst-Runtime-5.8000_05)
Aristotle Pagaltzis
pagaltzis at gmx.de
Fri Jan 30 22:44:57 GMT 2009
* Bill Moseley <moseley at hank.org> [2009-01-29 17:05]:
> Neither of the existing plugins do it correctly (IMO), as
> they only decode parameters leaving body_parameters as octets,
> and don't look at the request for the charset, IIRC. […]
> uri_for() rightly encodes to octets before escaping, but it
> always encodes to utf-8. Is it assumed that query parameters
> are always utf-8 or should they be decoded with the charset
> specified in the request?
The URI should always be assumed to be UTF-8 encoded octets.
The body should be decoded according to the charset declared
in the header by the browser.
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Catalyst
mailing list