httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From field...@apache.org
Subject svn commit: r111580 - /httpd/httpd/trunk/docs/cgi-examples/printenv /httpd/httpd/trunk/docs/cgi-examples/test-cgi
Date Sat, 11 Dec 2004 05:52:30 GMT
Author: fielding
Date: Fri Dec 10 21:52:29 2004
New Revision: 111580

URL: http://svn.apache.org/viewcvs?view=rev&rev=111580
Log:
Add charset to the painfully old example scripts.
These should really be replaced with proper encoding
of the output.


Modified:
   httpd/httpd/trunk/docs/cgi-examples/printenv
   httpd/httpd/trunk/docs/cgi-examples/test-cgi

Modified: httpd/httpd/trunk/docs/cgi-examples/printenv
Url: http://svn.apache.org/viewcvs/httpd/httpd/trunk/docs/cgi-examples/printenv?view=diff&rev=111580&p1=httpd/httpd/trunk/docs/cgi-examples/printenv&r1=111579&p2=httpd/httpd/trunk/docs/cgi-examples/printenv&r2=111580
==============================================================================
--- httpd/httpd/trunk/docs/cgi-examples/printenv	(original)
+++ httpd/httpd/trunk/docs/cgi-examples/printenv	Fri Dec 10 21:52:29 2004
@@ -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;

Modified: httpd/httpd/trunk/docs/cgi-examples/test-cgi
Url: http://svn.apache.org/viewcvs/httpd/httpd/trunk/docs/cgi-examples/test-cgi?view=diff&rev=111580&p1=httpd/httpd/trunk/docs/cgi-examples/test-cgi&r1=111579&p2=httpd/httpd/trunk/docs/cgi-examples/test-cgi&r2=111580
==============================================================================
--- httpd/httpd/trunk/docs/cgi-examples/test-cgi	(original)
+++ httpd/httpd/trunk/docs/cgi-examples/test-cgi	Fri Dec 10 21:52:29 2004
@@ -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:

Mime
View raw message