Skip to content

Commit

Permalink
fix(server): correctly set output encoding to UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Oct 16, 2023
1 parent f881d27 commit a267ef2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package judgels.michael.template;

import io.dropwizard.views.View;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
import java.time.Instant;
import java.util.Date;
Expand All @@ -10,7 +11,7 @@ public abstract class TemplateView extends View {
private HtmlForm form;

public TemplateView(String templateName, HtmlTemplate template) {
super(templateName);
super(templateName, StandardCharsets.UTF_8);
this.template = template;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="robots" content="noindex">
<title>${title}</title>
<link rel="stylesheet" href="/assets/css/reset.css">
Expand Down

0 comments on commit a267ef2

Please sign in to comment.