Comments (1)
Thanks for the report. Unfortunately, I don't think there's anything that we can do about it as the behavior is determined by the Servlet specification with which Tomcat is complying. In the absence of the response's character encoding being set through setCharacterEncoding
or setContentType
, the default character is specified to be ISO-8859-1
. That's what is happening here as you haven't called setCharacterEncoding
and the content type that you have specified does not provide any charset
information.
From the sample's README:
Also, there are integration tests demonstrating that issue does not reproduce when testing using MockMvc (no charset included at all)
This happens because Tomcat isn't involved so the default character encoding isn't being set. Strictly speaking, it could be argued that this is a bug in Spring Framework's mock response as it isn't completely compliant with the Servlet spec. Please open a Spring Framework issue if you would like to pursue this.
from spring-boot.
Related Issues (20)
- Why is the configuration of SpringBoot reading incorrect? HOT 4
- MeterRegistry not always processed by MeterRegistryPostProcessor HOT 2
- Springboot v3.3.0 - application failing during startup due to zipkin / brave tracing version upgrade HOT 1
- Broken Micrometer links in documentation HOT 4
- Broken KerberosRestTemplate after upgrading to Spring Boot 3.3.0 HOT 3
- After upgrading, deploy:deploy uploads jars to a pom only endpoint HOT 6
- Don't update Homebrew tap when releasing 3.2.x
- Update Homebrew tap when releasing 3.3.x
- Low cardinality key for uri is reported as UNKNOWN in DefaultServerRequestObservationConvention HOT 4
- buildInfo does not work with Gradle 8.7 or later when the configuration cache is enabled
- HttpMessageConverters should distinguish between server and client converters HOT 3
- Native imagem with ApplicationContextInitializer could not be found HOT 17
- Starter parent applies its configuration of the CycloneDX Maven plugin too broadly HOT 5
- Use GitHub action to update Antora UI version
- Use latest Framework 6.0.x versions when downgrading it for compatibility with version of Gradle that do not support multi-release jars HOT 2
- Spring Boot 3.3.0 Native debug=true in application.properties No effect HOT 9
- Use latest Framework 6.0.x version when downgrading it for compatibility with versions of Gradle that do not support multi-release jars
- Dependency Versions page (docs.spring.io) is not populated HOT 1
- Error creating HealthEndpointConfiguration in AbstractAspectJAdvice.bindExplicitArguments in 3.2.6 HOT 1
- Spring boot 2.7.6 throwing NoHandler Exception for GET '/test/v1' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot.