Closed
Description
Both the request and response objects should default to the same charsets. This causes very hard to troubleshoot bugs with repeated requests.
from com.google.api.client.http.HttpResponse
public Charset getContentCharset() {
return mediaType == null || mediaType.getCharsetParameter() == null
? Charsets.ISO_8859_1 : mediaType.getCharsetParameter();
}
from com.google.api.client.http.AbstractHttpContent
protected final Charset getCharset() {
return mediaType == null || mediaType.getCharsetParameter() == null
? Charsets.UTF_8 : mediaType.getCharsetParameter();
}
Ideally both will use Charsets.UTF_8
, as Charsets.ISO_8859_1
only supports a subset.