From hanecak@megaloman.com Tue Nov 2 09:04:44 1999 Date: Tue, 2 Nov 1999 17:58:02 +0100 (CET) From: Peter Hanecak To: htdig3-dev@htdig.org Subject: [htdig3-dev] encoding patch (encoding used in "Content-type" header) disclaimer: please take this e-mail as README file to submited patch. what is the patch doing: ------------------------ enabling htsearch to produce valid HTML content header in conjunction with localized templates (i.e. if you use for example ISO-8859-2 in your templates, corresponding "Content-type: text/html; charset=ISO-8859-2" is produced by htsearch). how it is done: --------------- in defaults.cc new 'encoding' item is set (default is empty: ""). when non empty value is used (in configuration file), then HTTP header is produced as follows: Content-type: text/html; charset=`config["encoding"]` if encoding is not specified in config file, then "normal" Content-type header is produced ("Content-type: text/html"). actual state: ------------- raw functionality seems to be OK. documentation entries do not exists (except comments in htdig.conf). TODO ---- - documentation please let me know whether it is usefull/correct/... sincerely peter hanecak p.s.: if someone is interested in RPM package of htdig with this patch, he can find it at http://www.megaloman.com/~hany/RPM/htdig.html (btw doors 2.2 release is glibc2.1 based, doors 1.2 is based on glibc2.0 ) - release 2 (release 1 with multilingual patch is obsolete) =================================================================== Peter Hanecak - production manager Mega & Loman, Stare grunty 52, 842 44 Bratislava, Slovakia tel., fax: +421-7-654 211 52 hanecak@megaloman.com, http://www.megaloman.com GPG pub.key: http://www.megaloman.com/gpg/hanecak-megaloman.txt =================================================================== [Part 2, "" Text/PLAIN 63 lines] [Unable to print this part]