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
When using the @Body annotation to extract multipart parameters into a Map<String,List>, the list of parameter values should be decoded to strings as UTF-8
Actual Behaviour
The list of parameter values is decoded to strings using latin1. The strings need to be decoded to bytes then re-converted to strings using utf-8.
Steps To Reproduce
See repository linked below. But to roll your own:
create a form that posts strings to a controller using multipart/form-data
add non-latin1 characters to the string (e.g. smart quotes)
Expected Behavior
When using the @Body annotation to extract multipart parameters into a Map<String,List>, the list of parameter values should be decoded to strings as UTF-8
Actual Behaviour
The list of parameter values is decoded to strings using latin1. The strings need to be decoded to bytes then re-converted to strings using utf-8.
Steps To Reproduce
See repository linked below. But to roll your own:
Environment Information
Example Application
https://github.com/tfield/micronaut-servlet-multipart
Version
4.4.2
The text was updated successfully, but these errors were encountered: