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
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.
Before you raised this issue, we've improved the behavior there in #18979 - filenames should support utf-8 by default now.
Do you have a small code snippet I can take a look at that reproduces this issue? Looking at the Feign support project is a bit too much scope for this.
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:
The text was updated successfully, but these errors were encountered: