Home | History | Annotate | Download | only in okhttp

Lines Matching defs:charset

21 import java.nio.charset.Charset;
44 * contentType} is non-null and lacks a charset, this will use UTF-8.
47 Charset charset = Util.UTF_8;
49 charset = contentType.charset();
50 if (charset == null) {
51 charset = Util.UTF_8;
52 contentType = MediaType.parse(contentType + "; charset=utf-8");
55 byte[] bytes = content.getBytes(charset);