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

UTF subject support #1169

Merged
merged 2 commits into from
Jun 28, 2024
Merged

UTF subject support #1169

merged 2 commits into from
Jun 28, 2024

Conversation

scottf
Copy link
Contributor

@scottf scottf commented Jun 27, 2024

For #1143

This allows you to turn on UTF-8 support via the connect options with the supportUTF8Subjects builder method.

You can publish with a UTF-8 subject whether or not this flag is set, since all that happens outgoing is we convert strings to byte arrays using UTF-8 character encoding anyway.

But on incoming messages, it's a different code path to process messages that might expect a UTF-8 subject, so the option is required.

Copy link
Member

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

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

LGTM 👌

src/test/java/io/nats/client/PublishTests.java Outdated Show resolved Hide resolved
@scottf scottf merged commit 12edbdf into main Jun 28, 2024
2 checks passed
@scottf scottf deleted the utf-subject-support branch June 28, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants