-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Description
Xinyi.Liu opened SPR-16061 and commented
I want to use FeignClient to pass MultipartFile .https://github.com/pcan/feign-client-test this project doesn't work with chinese filename,maybe all non-ascII filename.
At first i find this jira #19115
then i upgrade spring-boot-starter to 1.5.7.RELEASE
but it still doesn't work!
Then i debuged again to find why,FormHttpMessageConverter line 408 getFilename seems to support filename*= , but FormHttpMessageConverter line 368 doesn't pass a charset to HttpHeaders line 682 , and at line 708 charset seems to be Deprecated.
I tried UrlEncoder to encode filename and set FormHttpMessageConverter.setMultipartCharset
in github project file FeignSpringFormEncoder,none of my tries works.
Affects: 4.3.11
Reference URL: https://github.com/pcan/feign-client-test
Issue Links:
- HttpHeaders.setContentDispositionFormData() doesn't encode non-acsii characters correctly [SPR-14547] #19115 HttpHeaders.setContentDispositionFormData() doesn't encode non-acsii characters correctly