FIx garbled characters (utf-8)

This commit is contained in:
niyari
2021-11-25 15:09:25 +09:00
parent 0a22be91f4
commit 5f321db3a4
2 changed files with 3 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ if ($gconfig{'showlogin'}) {
}
&PrintHeader();
print "<!doctype html public \"-//W3C//DTD HTML 3.2 Final//EN\">\n";
print "<html><head><title>$title</title></head>\n";
print "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><title>$title</title></head>\n";
print "<frameset rows='$rows,*' border=0>\n";
$goto = &get_goto_module();
if ($goto) {

View File

@@ -39,10 +39,11 @@ elsif (!$cats{$in{'cat'}}) {
# Display title and categories
&PrintHeader();
print <<EOF;
<!doctype html public \"-//W3C//DTD HTML 3.2 Final//EN\">
<!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<LINK REL="stylesheet" TYPE="text/css" HREF="style.css">
</HEAD>