ntType(java.lang.String)</code></a> with the <code>String</code> of <code>text/html</code> and calling this method with
 <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/charset/StandardCharsets.html#UTF_8" title="class or interface in java.nio.charset" class="external-link"><code>StandardCharsets.UTF_8</code></a> is equivalent to calling <a href="#setContentType(java.lang.String)"><code>setContentType(java.lang.String)</code></a> with the <code>String</code> of
 <code>text/htm