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

Invalid default encoding without charset for json #1086

Open
0xpr03 opened this issue Dec 20, 2023 · 1 comment
Open

Invalid default encoding without charset for json #1086

0xpr03 opened this issue Dec 20, 2023 · 1 comment
Labels
package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@0xpr03
Copy link

0xpr03 commented Dec 20, 2023

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 0xpr03 added package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Dec 20, 2023
@0xpr03 0xpr03 changed the title Invalid default decode without charset for json Invalid default encoding without charset for json Dec 20, 2023
@Kaps61929
Copy link

please assign this issue to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants