diff --git a/scripts/w3mhelp.cgi.in b/scripts/w3mhelp.cgi.in index 503dddc..f70a6db 100644 --- a/scripts/w3mhelp.cgi.in +++ b/scripts/w3mhelp.cgi.in @@ -54,6 +54,12 @@ if (defined($ENV{'QUERY_STRING'})) { } } +if ($lang eq 'ja') { + $help_charset='EUC-JP'; +} else { + $help_charset='UTF-8'; +} + %f = %keyfunc; %keyfunc = (); while (($key, $fname) = each %f) { @@ -95,6 +101,7 @@ Content-Type: text/html; charset=$charset <HTML> <HEAD> +<META http-equiv="Content-Type" content="text/html; charset=$help_charset"> <TITLE>w3m help page</TITLE> </HEAD> <BODY>