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

Allow server SDKs to replace invalid UTF-8 character with '�' #3996

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

drganjoo
Copy link
Contributor

@drganjoo drganjoo commented Feb 4, 2025

When the input contains invalid UTF-8 characters (such as surrogate pairs or invalid character ranges), these characters will be replaced with the replacement character "�" (\uFFFD). This replacement only occurs if the codegen flag 'replaceInvalidUtf8' is set to true in smithy-build-template.json.

@drganjoo drganjoo force-pushed the fahadzub/replace-invalid-utf8 branch 2 times, most recently from 2e86d87 to 10fb59e Compare February 4, 2025 15:31
@drganjoo drganjoo force-pushed the fahadzub/replace-invalid-utf8 branch 2 times, most recently from 9507f00 to 726d808 Compare February 4, 2025 15:40
@drganjoo drganjoo force-pushed the fahadzub/replace-invalid-utf8 branch from 726d808 to 14fdd2e Compare February 4, 2025 15:47
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.

1 participant