agithub icon indicating copy to clipboard operation
agithub copied to clipboard

Overwrite default encoding for json

Open jendrusk opened this issue 5 years ago • 0 comments

Class Body in method parseContentType is assuming (basing on RFC 2068) that ISO-8859-1 is default charset in case none is provided... while RFC-4627 (https://tools.ietf.org/html/rfc4627) says "JSON text SHALL be encoded in Unicode. The default encoding is UTF-8."

Possible resolutions are to change default encoding for JSON or to allow custom encoding using env variables or some parameter

jendrusk avatar Jun 01 '20 13:06 jendrusk