turn-type">void</span>&nbsp;<span class="element-name">setCharacterEncoding</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;encoding)</span></div>
<div class="block">Sets the character encoding (MIME charset) of the response being sent to the client, for example, to UTF-8. If the
 response character encoding has already been set by <a href="ServletCo