Code examples for Charset

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
28:	response.charset(charset) 
29:	.header("Content-Type", contentType + "; charset=" + charset.name()) 
Full Snippet Info
7
CodeRank
79:	} 
-
87:	} 
Full Snippet Info
7
CodeRank
104:	CharsetDecoder d = map.get(charset); 
-
112:	d = charset.newDecoder(); 
-
115:	map.put(charset, d); 
Full Snippet Info
7
CodeRank
147:	m.setProperty(Marshaller.JAXB_ENCODING, c.name()); 
-
150:	writeTo(t, mediaType, c, m, entityStream); 
Full Snippet Info
7
CodeRank
47:	.charset(CHARSET) 
48:	.header("Content-Type", "text/html; charset=" + CHARSET.name()) 
Full Snippet Info
7
CodeRank
165:	m.setProperty(Marshaller.JAXB_ENCODING, c.name()); 
-
168:	writeTo(t, mediaType, c, m, entityStream); 
Full Snippet Info
7
CodeRank
61:	response.setCharacterEncoding(charset.name()); 
Full Snippet Info
6
CodeRank
70:	CharsetDecoder d = map.get(charset); 
-
78:	d = charset.newDecoder(); 
-
81:	map.put(charset, d); 
Full Snippet Info
6
CodeRank
50:	return (value != null ? value.name() : ""); 
Full Snippet Info
6
CodeRank
68:	ple.setCharset(utf8Charset); 
-
74:	assertEquals(msg, new String(baos.toByteArray(), utf8Charset.name())); 
Full Snippet Info
6
CodeRank
36:	protected String charsetName = charset.name(); 
Full Snippet Info
6
CodeRank
80:	return new String(bytes, charset.name()); 
Full Snippet Info
6
CodeRank
85:	wireFeedEncoding = DEFAULT_CHARSET.name(); 
Full Snippet Info
6
CodeRank
236:	encodingToCharset.put(encoding, charset); 
-
238:	responseString = charset.decode(ByteBuffer.wrap(responseBytes)).toString(); 
Full Snippet Info
6
CodeRank
65:	this.responseCharset = responseCharset != null ? responseCharset.name() : DEFAULT_CHARSET; 
Full Snippet Info
6
CodeRank
75:	return CONTAINED.contains(cs.name()); 
Full Snippet Info
6
CodeRank
147:	m.setProperty(Marshaller.JAXB_ENCODING, c.name()); 
-
150:	writeTo(t, mediaType, c, m, entityStream); 
Full Snippet Info
6
CodeRank
95:	return (long) str.getBytes(charset.name()).length; 
Full Snippet Info
6
CodeRank
149:	charset.newEncoder() 
Full Snippet Info
5
CodeRank
102:	this.responseCharset = responseCharset != null ? responseCharset.name() : DEFAULT_CHARSET; 
Full Snippet Info
6
CodeRank