We have a scenario where a page submits multiple fields with the same name. To workaround the default approach of CF to put these into a comma-delimited string, without changing application-wide, we access field values in certain places as an array using getPageContext().getRequest().getParameterValues("#fieldname#")
.
The problem we are experiencing is that unicode characters submitted are being corrupted. For example El celular que compré está averiado
in a field array comes back as the string El celular que compré está averiado
. If I dump getHTTPRequestData()
I can see the properly url encoded El+celular+que+compr%C3%A9+est%C3%A1+averiado
is sent to the server.
Is the java string not being handled by CF correctly? Anyway to resolve this issue on a non-application-wide basis other than parsing getHTTPRequestData().content
which we really don't want to do?