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 declare the UTF-8 charset for json responses #1231

Merged
merged 8 commits into from
Jun 15, 2023

Conversation

damianham
Copy link
Contributor

Description of the Change

I was getting incorrect decoding of UTF-8 characters in a Flutter application pulling data from an Amber web application that contained text strings with accented characters and this Dart issue explains why dart-lang/http#175

Alternate Designs

Benefits

Dart HTTP clients will be able to correctly decode json data from an Amber app

Possible Drawbacks

None - it conforms to the json spec

eliasjpr
eliasjpr previously approved these changes Sep 10, 2020
@eliasjpr
Copy link
Contributor

@damianham after reading https://www.w3.org/International/questions/qa-choosing-encodings and this https://www.w3.org/International/questions/qa-choosing-encodings#http I think it is best to have all responses to default to UTF-8. I wonder if there would be any implications for currently running Amber Apps. Thoughts

@eliasjpr eliasjpr dismissed their stale review September 13, 2020 18:13

Failing tests. Please correct and I will be happy to review again

Copy link
Member

@drujensen drujensen left a comment

Choose a reason for hiding this comment

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

lgtm

@crimson-knight crimson-knight merged commit 382289f into amberframework:master Jun 15, 2023
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.

5 participants