You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem in FileUploadSupport.extractMultipartParams()
if (item.isFormField)
BodyParams(params.fileParams, params.formParams + ((item.getFieldName, item.getString // < here
FileItem.getString returns string in "ISO-8859-1" latin encoding.
if there is a text field on a form with non-latin chars then this method returns a broken string .
Possible fix it's to pass a charset name into getString method: item.getString("UTF-8")
The text was updated successfully, but these errors were encountered:
This is a thorny problem. Browsers aren't usually explicit about the charset of form parts, and the actual encoding is browser-specific and may depend on attributes of the form being submitted. Imperfect solution:
Look for a charset on the form part. If it's set, trust it.
Otherwise, default to the kernel's defaultCharacterEncoding (which itself defaults to UTF-8).
Provide fileItemToString hook so apps can apply custom hacks as necessary.
The problem in FileUploadSupport.extractMultipartParams()
FileItem.getString returns string in "ISO-8859-1" latin encoding.
if there is a text field on a form with non-latin chars then this method returns a broken string .
Possible fix it's to pass a charset name into getString method: item.getString("UTF-8")
The text was updated successfully, but these errors were encountered: