As per RFC 4627, JSON is UTF-8 by default (with UTF-16 or UTF-32 as other two possible encodings). However, the http library uses Latin-1 decoding, unless there is an explicit character set definition in the response headers.
Most notably, this breaks Credential.getUserInfo() when the user's name has non-ASCII characters in it.
As per RFC 4627, JSON is UTF-8 by default (with UTF-16 or UTF-32 as other two possible encodings). However, the http library uses Latin-1 decoding, unless there is an explicit character set definition in the response headers. Most notably, this breaks
Credential.getUserInfo()
when the user's name has non-ASCII characters in it.