|
|
|
@ -167,7 +167,7 @@ public class FreeMarkerView extends AbstractUrlBasedView { |
|
|
|
* process. See the note in the {@linkplain FreeMarkerView class-level |
|
|
|
* process. See the note in the {@linkplain FreeMarkerView class-level |
|
|
|
* documentation} for details. |
|
|
|
* documentation} for details. |
|
|
|
* @see freemarker.template.Configuration#setDefaultEncoding |
|
|
|
* @see freemarker.template.Configuration#setDefaultEncoding |
|
|
|
* @see #setEncoding(Charset) |
|
|
|
* @see #setCharset(Charset) |
|
|
|
* @see #getEncoding() |
|
|
|
* @see #getEncoding() |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void setEncoding(@Nullable String encoding) { |
|
|
|
public void setEncoding(@Nullable String encoding) { |
|
|
|
@ -175,14 +175,14 @@ public class FreeMarkerView extends AbstractUrlBasedView { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Set the encoding used to decode byte sequences to character sequences when |
|
|
|
* Set the {@link Charset} used to decode byte sequences to character sequences |
|
|
|
* reading the FreeMarker template file for this view. |
|
|
|
* when reading the FreeMarker template file for this view. |
|
|
|
* <p>See {@link #setEncoding(String)} for details. |
|
|
|
* <p>See {@link #setEncoding(String)} for details. |
|
|
|
* @since 6.2 |
|
|
|
* @since 6.2 |
|
|
|
* @see java.nio.charset.StandardCharsets |
|
|
|
* @see java.nio.charset.StandardCharsets |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void setEncoding(@Nullable Charset encoding) { |
|
|
|
public void setCharset(@Nullable Charset charset) { |
|
|
|
setEncoding(encoding != null ? encoding.name() : null); |
|
|
|
this.encoding = (charset != null ? charset.name() : null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|