Problem
- You want to use Apache and a CGI in Lisp and pass text with the POST-method to your lisp script.
Solution
- as su do
- change the file in /etc/apache2/conf.d/charset by commenting the one line in there, it should look like this afterwards: #AddDefaultCharset UTF-8
- change the file in /etc/apache2/apache2.conf by uncommenting the line AddDefaultCharset ISO-8859-1
- This last step might not be necessary on some configurations but it does not hurt either. Add your lisp extension of choise (like *.lsp) to the file /etc/mime.types by adding \"lsp\" (without \") to the line that looks liketext/html html htm shtml
- change the file in /etc/apache2/conf.d/charset by commenting the one line in there, it should look like this afterwards:
- Then you should be set in general, now each lisp cgi script should have a first line like this:where -E sets the language of choice and the encoding (note: the \"fr\" option that is written in the help file doesn't work here)#!/usr/bin/clisp -E iso-8859-1
- All other included lisp files need to be loaded the way explained in Load Special Characters In Clisp