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

chore(volo-http): add feature json-utf8-lossy #530

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

yukiiiteru
Copy link
Member

Motivation

Since sonic-rs added a new feature utf8_lossy, it allows to parse JSON with invalid UTF-8 and UTF-16 characters.

When this feature is enabled, invalid characters are replaced with '\uFFFD' (displayed as �) instead of parsing failing due to invalid characters.

Solution

Add feature json-utf8-lossy to Volo-HTTP.

In addition, this PR also unifies the style of feature names, default_client, default_serverhave been renamed todefault-client, default-server`.

@yukiiiteru yukiiiteru requested review from a team as code owners November 11, 2024 10:13
PureWhiteWu
PureWhiteWu previously approved these changes Nov 11, 2024
Since `sonic-rs` added a new feature `utf8_lossy`, it allows to parse
JSON with invalid UTF-8 and UTF-16 characters.

When this feature is enabled, invalid characters are replaced with
'\uFFFD' (displayed as �) instead of parsing failing due to invalid
characters.

Signed-off-by: Yu Li <[email protected]>
@yukiiiteru yukiiiteru merged commit 469d483 into cloudwego:main Nov 11, 2024
13 checks passed
@yukiiiteru yukiiiteru deleted the chore/sonic-lossy branch November 11, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants