MCPcopy Create free account
hub / github.com/jhy/jsoup / charset

Method charset

src/main/java/org/jsoup/nodes/Document.java:268–271  ·  view source on GitHub ↗

Set the output character set of this Document. This method is equivalent to OutputSettings#charset(java.nio.charset.Charset) OutputSettings.charset(Charset), but additionally adds or updates the charset / encoding element within the Document. If there's no existing element

(Charset charset)

Source from the content-addressed store, hash-verified

266 @see OutputSettings#charset(java.nio.charset.Charset)
267 */
268 public void charset(Charset charset) {
269 outputSettings.charset(charset);
270 ensureMetaCharsetElement();
271 }
272
273 /**
274 Get the output character set of this Document. This method is equivalent to {@link OutputSettings#charset()}.

Calls 2

charsetMethod · 0.65