]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add charset to the painfully old example scripts.
authorRoy T. Fielding <fielding@apache.org>
Sat, 11 Dec 2004 05:52:29 +0000 (05:52 +0000)
committerRoy T. Fielding <fielding@apache.org>
Sat, 11 Dec 2004 05:52:29 +0000 (05:52 +0000)
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

docs/cgi-examples/printenv
docs/cgi-examples/test-cgi

index 207074361a7d9eadcb5a8eee15022cea10cb4968..e4c2140bcff5e382ee37b6df99971b641d4e5987 100644 (file)
@@ -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;
index a85631e3aa2b6c0cef0afb6362a5b9fd5b28dceb..e27f8575235c1dd7c4e124b6ec666140303b2efd 100644 (file)
@@ -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: