Lines Matching refs:charset
150 // content type will be string like "text/xml; charset=UTF-8" or "text/xml"
157 String charset = null;
162 // this should be something like "charset=UTF-8", but we want to
164 charset = rawContentType.substring(index + 1).trim();
165 if (charset.startsWith("charset=")) {
166 // 8 is the length of "charset="
167 charset = charset.substring(8).trim();
169 if ((charset.charAt(0) == '"'
170 && charset.charAt(charset.length() - 1) == '"')
171 || (charset.charAt(0) == '\''
172 && charset.charAt(charset.length() - 1)
174 charset =
175 charset.substring(1, charset.length() - 1);
179 charset = null;
189 -- the most common type of external information is the "charset" parameter of a MIME package
195 if (charset != null) {
196 detectedEncoding = charset;
204 if (charset != null) {
205 detectedEncoding = charset;