MCPcopy Create free account
hub / github.com/apache/tomcat / setCharset

Method setCharset

java/org/apache/tomcat/util/http/Parameters.java:99–107  ·  view source on GitHub ↗

Set the character set used for decoding body parameters. @param charset The character set, or null to use the default (ISO-8859-1)

(Charset charset)

Source from the content-addressed store, hash-verified

97 * @param charset The character set, or null to use the default (ISO-8859-1)
98 */
99 public void setCharset(Charset charset) {
100 if (charset == null) {
101 charset = DEFAULT_BODY_CHARSET;
102 }
103 this.charset = charset;
104 if (log.isTraceEnabled()) {
105 log.trace("Set encoding to " + charset.name());
106 }
107 }
108
109 /**
110 * Set the character set used for decoding query string parameters.

Calls 2

isTraceEnabledMethod · 0.65
traceMethod · 0.65