Re: parameter special characters are converting into junk characters.

Splash Forums PrettyFaces Users parameter special characters are converting into junk characters. Re: parameter special characters are converting into junk characters.

#23112

Just because you are using a hyphen for splitting strings in some other query parameter doesn’t prevent you from interpreting it differently for the date parameters. They are two distinct parameters. You can parse each of them differently.

Simplified example:

// origin
String[] origins = request.getParameter("origin").split("-");

// date
SimpleDateFormat dateFormat = new SimpleDateFormat( "dd-MM-yyyy" );
Date departDate = dateFormat.parse( request.getParameter("departDate") );