http icon indicating copy to clipboard operation
http copied to clipboard

Invalid default encoding without charset for json

Open 0xpr03 opened this issue 1 year ago • 1 comments

Hello,

the current assumption is that if no charset is defined, a fallback to latin1 should be done. Problem is that for application/json no charset means utf8: https://datatracker.ietf.org/doc/html/rfc8259#section-8.1 when using something like json.decode(result.body). So right now one needs to work around flutter behaving differently for JSON payloads than any other system.

0xpr03 avatar Dec 20 '23 11:12 0xpr03

please assign this issue to me.

Kaps61929 avatar Jan 18 '24 08:01 Kaps61929