4 # Install it in $LIB/utf8.cgi and configure keymap as
5 # keymap "x u" GOTO file:/$LIB/utf8.cgi
8 # $conv = "iconv -f UTF-8 -t EUC-JP";
9 $type = $ENV{W3M_TYPE} || "text/plain";
11 $file = $ENV{W3M_SOURCEFILE};
15 Content-Type: $type; charset=EUC-JP
18 if ($type =~ /^text\/html/i && $url) {
19 print "<BASE HREF=\"$url\">\n";
21 exec split(" ", $conv), $file;