Skip to content

Switching Logback's file logging charset to UTF-8 #46846

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nosan
Copy link
Contributor

@nosan nosan commented Aug 15, 2025

See #44472

I wonder if DefaultLogbackConfiguration.java should be updated to use UTF-8 as well. If so, perhaps System.console().charset() should be used as the default for the console.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 15, 2025
Aligns the file charset between Log4j2 and Logback.

Prior to this commit, there was an inconsistency between the two:
Log4j2 used UTF-8, while Logback used Charset.defaultCharset(),
which is platform-dependent.

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants