elm / http

Make HTTP requests in Elm
https://package.elm-lang.org/packages/elm/http/latest
BSD 3-Clause "New" or "Revised" License
155 stars 46 forks source link

jsonBody specifies character encoding utf-8 #66

Open holgerl opened 4 years ago

holgerl commented 4 years ago

jsonBody should specify character encoding as utf-8. If it does not, the default encoding is ISO-8859-1 [1], which is problematic with foreign characters.

[1] https://www.w3.org/International/articles/http-charset/index

lucamug commented 2 years ago

This may be redundant (https://stackoverflow.com/questions/9254891/what-does-content-type-application-json-charset-utf-8-really-mean/9254967) but maybe good to have? (https://portswigger.net/research/json-hijacking-for-the-modern-web)