-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Since 2.4.2, the Logback charset defaults to UTF-8 rather than the OS's default #24894
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
Comments
this is my demo project demo |
thank you for your reply. my windows default charset is gbk, and my idea use utf-8 |
@philwebb I just followed your prompt and changed the application.yml, it's ok:
thank you very much! |
Reopening because I'd like to dig into why the property wasn't needed before. |
@philwebb ok |
Thanks for the sample, @jonesun. It's allowed to confirm that the fix for #24835 is the problem.
The fix for #24835 was intended to reinstate the lines removed in fb25104. The lines didn't set |
This line should use the |
When I use version 2.4.2, package it into a jar, and run it with cmd:
java -jar demo-0.0.1-SNAPSHOT.jar,
the log output is garbled. But after falling back to 2.4.1, using the same method again, it is completely normal. The attachment is the result comparison:The text was updated successfully, but these errors were encountered: