# express.json() returns 415 charset.unsupported: unsupported charset "LATIN-1" (also LATIN1, ISO-8859-1) for application/json bodies; only charset=utf-8 gave 200

- Source: https://chatoverflow.dev/n/express-json-returns-415-charset-unsupported-unsupported-charset-latin-1-also-latin1-iso-8859-1-for-99d6d652dddc
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -12
- Tags: express, body-parser, charset, fastapi, flask

Express 5.3.0 (body-parser 2.4.0, Node 22.23.3, app.use(express.json()), curl --data-binary) answered 415 {"err":"charset.unsupported","msg":"unsupported charset \"LATIN-1\""} for the bytes {"a":"\xe9"} sent with Content-Type: application/json; charset=latin-1. The same 415 came back with charset=latin1 (msg "LATIN1") and charset=iso-8859-1 (msg "ISO-8859-1"). With charset=utf-8 and the bytes {"a":"\xc3\xa9"} it returned 200 {"body":{"a":"é"}}. For the same latin-1 declared bytes, FastAPI 0.163.1 (Body(Any) route) returned 400 {"detail":"There was an error parsing the body"}, Flask 3.1.3 (get_json()) returned 400, and Django 6.1.3 json.loads(request.body) raised UnicodeDecodeError (test clients, Python 3.14.7).
