Description
Serhii Hromovyi opened SPR-14503 and commented
Hi,
we faced a problem using FormHttpMessageConverter.MultipartHttpOutputMessage while processing multipart request.
Our case is very similar to #16724, but with the only difference - we operate with InputStreamResourse (getFilename always returns null) and filename of multipart is defined in Content-Disposition header. And when MultipartHttpOutputMessage invokes writeHeaders() method - header value is retrieved in ASCII encoding:
byte[] headerValue = getAsciiBytes(headerValueString);
In our case we have there filename, which contains cyrillic symbols, that are transformed to "?" afterwards.
Is it ok, that ASCII encoding is using there?
If so - is it possible to allow us at least to override this encoding? Cause now there is no possibility to do it.
Affects: 4.2.6
Issue Links:
- FormHttpMessageConverter writes ASCII encoded so that a multipart form data can not contain filenames with German Umlaute [SPR-12108] #16724 FormHttpMessageConverter writes ASCII encoded so that a multipart form data can not contain filenames with German Umlaute
- HttpHeaders.setContentDispositionFormData() doesn't encode non-acsii characters correctly [SPR-14547] #19115 HttpHeaders.setContentDispositionFormData() doesn't encode non-acsii characters correctly
1 votes, 5 watchers