Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resttemplate customized charset #28956

Closed
fightzhong opened this issue Aug 12, 2022 · 1 comment
Closed

resttemplate customized charset #28956

fightzhong opened this issue Aug 12, 2022 · 1 comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: superseded An issue that has been superseded by another

Comments

@fightzhong
Copy link

code in org.springframework.http.converter.FormHttpMessageConverter#writeMultipart

I use resttemplate to upload images, in alicloud oss server, If the encoding format is actively specified, an error will be returned

Can a configuration be added to allow the user to choose whether to actively increase the character set? Automatically add character set by default, but we can remove the character by cconfiguration?

I know that this active addition of character sets is a standard practice, but it will be less flexible in the case of hard writing
image

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Aug 12, 2022
@rstoyanchev rstoyanchev added the in: web Issues in web modules (web, webmvc, webflux, websocket) label Jan 24, 2023
@rstoyanchev
Copy link
Contributor

As of #25885, we no longer add a charset parameter if the charset is UTF-8 or US-ASCII, which is used by default we use UTF-8, which means there should be no charset parameter unless you set it explicitly.

@rstoyanchev rstoyanchev added status: superseded An issue that has been superseded by another and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: superseded An issue that has been superseded by another
Projects
None yet
Development

No branches or pull requests

3 participants