Skip to content

Docs: Document the JVM default charset for non-English trap values - #9167

Merged
marshallmassengill merged 2 commits into
OpenNMS:foundation-2024from
marshallmassengill:docs-trap-charset-f2024
Dec 2, 2026
Merged

marshallmassengill merged 2 commits into
OpenNMS:foundation-2024from
marshallmassengill:docs-trap-charset-f2024

Conversation

@marshallmassengill

Copy link
Copy Markdown
Contributor

Got a question from someone this morning. Feels like this should be in the docs... I don't think it's needed for foundation-2026/develop but it's harmless as far as I can tell and the number of users who are likely be using it is small.

Octet string varbinds are decoded with the JVM default charset. On Java 17
and earlier that default follows the process locale, so UTF-8 text can turn
into replacement characters. Describe the file.encoding setting and rename
the section so it can be found by that symptom.
Since Java 18 the JVM default charset is UTF-8 regardless of the system
locale, so the file.encoding setting only matters on Java 17 and earlier.

@dino2gnt dino2gnt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@marshallmassengill
marshallmassengill merged commit 10bb1af into OpenNMS:foundation-2024 Dec 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants