Make output charset configurable so UTF-8 can be used in query-pr.cgi.
This commit is contained in:
parent
f2ea3e0f43
commit
d73bc5af84
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=37459
1 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
# $FreeBSD: www/en/cgi/cgi-style.pl,v 1.41 2010/12/29 13:08:41 wosch Exp $
|
# $FreeBSD: www/en/cgi/cgi-style.pl,v 1.42 2011/01/08 14:58:27 wosch Exp $
|
||||||
#
|
#
|
||||||
# Perl routines to encapsulate various elements of HTML page style.
|
# Perl routines to encapsulate various elements of HTML page style.
|
||||||
|
|
||||||
|
@ -32,6 +32,10 @@ if (!defined($hsty_date)) {
|
||||||
$hsty_date = '';
|
$hsty_date = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!defined($hsty_charset)) {
|
||||||
|
$hsty_charset = 'iso-8859-1';
|
||||||
|
}
|
||||||
|
|
||||||
# This can be set to either a string containing an inline CSS stylesheet
|
# This can be set to either a string containing an inline CSS stylesheet
|
||||||
# or to a <link> element that references an external CSS stylesheet, to
|
# or to a <link> element that references an external CSS stylesheet, to
|
||||||
# make local modifications to the style of a CGI script's output.
|
# make local modifications to the style of a CGI script's output.
|
||||||
|
@ -212,7 +216,7 @@ $doctype
|
||||||
$html
|
$html
|
||||||
|
|
||||||
<head><title>$title</title>
|
<head><title>$title</title>
|
||||||
<meta http-equiv='content-type' content='text/html; charset=iso-8859-1' $endslash>
|
<meta http-equiv='content-type' content='text/html; charset=$hsty_charset' $endslash>
|
||||||
<meta name='robots' content='nofollow' $endslash>
|
<meta name='robots' content='nofollow' $endslash>
|
||||||
<link rel="stylesheet" media="screen"
|
<link rel="stylesheet" media="screen"
|
||||||
href="$hsty_base/layout/css/fixed.css" type="text/css"
|
href="$hsty_base/layout/css/fixed.css" type="text/css"
|
||||||
|
|
Loading…
Reference in a new issue