Package: info2www
Version: 1.2.2.9-24
Severity: normal
Dear info2www maintainers,
info2www outputs HTML 4 and does not specify "charset". Thus, Firefox
represents as default iso-8859-1 when it actually is UTF-8 encoded.
In Firefox, one has to manually choose
[Display -> Text encoding -> unicode]
for all the text to display properly.
Probably not the correct way to fix it but : my workaround as
attached patch.
Best regards,
-- System Information:
Debian Release: 10.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-9-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8),
LANGUAGE=fr_CH:fr (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages info2www depends on:
ii apache2 [httpd-cgi] 2.4.38-3+deb10u3
ii perl 5.28.1-6
info2www recommends no packages.
info2www suggests no packages.
-- no debconf information
--- original-info2www 2020-07-22 16:06:42.025679867 +0200
+++ /usr/lib/cgi-bin/info2www 2020-07-22 16:08:24.370046028 +0200
@@ -384,7 +384,7 @@
print
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01
Transitional//EN\"\n\"http://www.w3.org/TR/REC-html4/loose.dtd\">\n\n<HTML>\n<HEAD><TITLE>Info
Node: ",
&HTMLify("($h_file)$h_node"),
- "</TITLE>\n<LINK REV=\"MADE\"
HREF=\"mailto:lmdrsm\@lmd.ericsson.se\"></HEAD>\n<BODY BGCOLOR=\"#FFFFFF\"
TEXT=\"#000000\" LINK=\"#0000FF\" ALINK=\"#FF0000\" VLINK=\"#FF0000\">\n",
+ "</TITLE>\n<meta charset=\"UTF-8\">\n<LINK REV=\"MADE\"
HREF=\"mailto:lmdrsm\@lmd.ericsson.se\"></HEAD>\n<BODY BGCOLOR=\"#FFFFFF\"
TEXT=\"#000000\" LINK=\"#0000FF\" ALINK=\"#FF0000\" VLINK=\"#FF0000\">\n",
"<H1>",
"$info_img",
&HTMLify("($h_file)$h_node"),