"https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Locale.html?is-external=true" title="class or interface in java.util" class="externalLink">Locale</a>&nbsp;loc)</pre>
<div class="block">Sets the locale of the response, if the response has not been committed yet. It also sets the response's character
 encoding appropriately for the locale, if the character encoding has not been explicitly set using
 <a href="#setContentType(java.lang.String)"><code>setContentType(java.lang.String)</cod