chkal/pf-issue-test — Issue #84: Provide a way to change the default URL encoding used
Author: chkal
Created: 2012-03-06 07:31:10+00:00
State: open

Originally filed by **chkalt** on 2011-01-09T16:03:15

Google Code issue: http://code.google.com/p/prettyfaces/issues/detail?id=86

We currently use UTF-8 globally to encode and decode URLs. I think we should make this customizable.

Tomcat for example uses ISO-8859-1 as the default encoding for URIs. So users may want to change the default encoding of PrettyFaces to also work this way. This may be useful to build applications for specific (old) browser versions (IE6?).

Perhaps something like this:

com.ocpsoft.pretty.URL_ENCODING
UTF-8

I have identified the following classes that should be changed if introducing this:

PrettyContext
QueryString
Metadata
HTTPDecoder

What do you think? Should we do this? Tell me your thoughts! :-)