On Fri, Jan 30, 2009 at 11:44:57PM +0100, Aristotle Pagaltzis wrote:
> * Bill Moseley <mose...@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.

Assume UTF-8 because that's how the application encoded the
URL in the first place?  Is UTF-8 specified in an RFC?  I thought it
URIs were defined as characters with ASCII encoding for transmitting.


Nobody responded to the main point of this email -- if Catalyst should
handle encoding in core instead of with a plugin.  Nobody has an
opinion about that?  Or is was it just ignored -- which is often how
people handle character encoding in applications. ;)

-- 
Bill Moseley
mose...@hank.org
Sent from my iMutt


_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to