I'm attempting to fix a character encoding issue. I realize this is really not a good way to go about it but currently I am just going to bandage it up and when character encoding comes up in a new to do list I will bring a proper solution.
anyway currently i've fixed a character encoding issue with french characters by doing this in the action:
String folderName = request.getParameter(PK_FOLDER_NAME);
if (response.getCharacterEncoding().equals("ISO-8859-1") && folderName != null) {
folderName = URLDecoder.decode(new String(folderName.getBytes("ISO-8859-1"), "UTF-8"), "UTF-8");
}
however what is the string is an array? how would i do it? for example what if string is as such:
String[] memos = request.getParameterValues(PK_MEMO);
how would i convert using the URLDecoder than?