From: Roy T. Fielding Date: Sat, 11 Dec 2004 05:52:29 +0000 (+0000) Subject: Add charset to the painfully old example scripts. X-Git-Tag: 2.1.3~279 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a6123f47b2c6bf745329d350d0b411db7271d09;p=thirdparty%2Fapache%2Fhttpd.git Add charset to the painfully old example scripts. These should really be replaced with proper encoding of the output. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@111580 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/cgi-examples/printenv b/docs/cgi-examples/printenv index 207074361a7..e4c2140bcff 100644 --- a/docs/cgi-examples/printenv +++ b/docs/cgi-examples/printenv @@ -3,7 +3,7 @@ ## printenv -- demo CGI program which just prints its environment ## -print "Content-type: text/plain\n\n"; +print "Content-type: text/plain; charset=iso-8859-1\n\n"; foreach $var (sort(keys(%ENV))) { $val = $ENV{$var}; $val =~ s|\n|\\n|g; diff --git a/docs/cgi-examples/test-cgi b/docs/cgi-examples/test-cgi index a85631e3aa2..e27f8575235 100644 --- a/docs/cgi-examples/test-cgi +++ b/docs/cgi-examples/test-cgi @@ -3,7 +3,7 @@ # disable filename globbing set -f -echo Content-type: text/plain +echo "Content-type: text/plain; charset=iso-8859-1" echo echo CGI/1.0 test script report: