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

Incorrectly using ASCII instead of UTF8 when converting message body to byte[] #1825

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

normj
Copy link
Member

@normj normj commented Sep 27, 2024

Issue #, if available:
#1824

Description of changes:
In a previous update to the library when we switched to using the registered serializer for deserializing message body to the FromBody type the code incorrectly converted to a byte array using the ASCII encoding. This PR changes the encoding to UTF8.

The changes is all in the APIGatewaySetupParameters.tt file. The rest of the PR is updating the version bump to 1.5.2 and updating the unit test snapshots.

Testing
Updated the generated snapshots used in unit tests to confirm we are using UTF8. I also rerun the original issues scenario in Lambda with a built version of the NuGet package and confirmed the correct encoding of the Unicode characters.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@normj normj merged commit 7324446 into dev Sep 27, 2024
3 of 4 checks passed
@normj normj deleted the normj/fix-unicode branch September 27, 2024 02:19
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.

3 participants