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)
| 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. |