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

Explicitly specify charset, don't rely on default charset #491

Merged
merged 1 commit into from
Jun 23, 2021
Merged

Explicitly specify charset, don't rely on default charset #491

merged 1 commit into from
Jun 23, 2021

Conversation

Marcono1234
Copy link
Contributor

@Marcono1234 Marcono1234 commented Jun 22, 2021

Changes

Fixes #484, fixes #485

Replaces (implicit) usage of the default charset with explicit usage of StandardCharsets.UTF_8 (added in API level 19).

Android guarantees that Charset.defaultCharset() is UTF-8 (note that this is not true for the JDK, though that might not be important here), however to make the expected behavior clearer this pull request explicitly uses UTF-8 as charset.

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. Since this library has unit testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage

  • This change adds integration test coverage

  • This change has been tested on the latest version of the platform/language or why not

Checklist

Android guarantees that Charset.defaultCharset() is UTF-8; however to make
the expected behavior clearer, explicitly specify the charset when calling
methods and constructors.
@Marcono1234 Marcono1234 requested a review from a team as a code owner June 22, 2021 17:22
@lbalmaceda lbalmaceda closed this Jun 23, 2021
@lbalmaceda lbalmaceda reopened this Jun 23, 2021
@lbalmaceda lbalmaceda merged commit 79743a3 into auth0:main Jun 23, 2021
@lbalmaceda lbalmaceda added this to the v2-Next milestone Jun 23, 2021
@lbalmaceda
Copy link
Contributor

Thanks for your contribution!

@Marcono1234 Marcono1234 deleted the marcono1234/explicit-charset branch June 23, 2021 11:09
@lbalmaceda lbalmaceda modified the milestones: v2-Next, 2.3.0 Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants