amber icon indicating copy to clipboard operation
amber copied to clipboard

Explicitly declare the UTF-8 charset for json responses

Open damianham opened this issue 5 years ago • 1 comments

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 https://github.com/dart-lang/http/issues/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

damianham avatar Sep 08 '20 18:09 damianham

@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 avatar Sep 13 '20 18:09 eliasjpr