On 10/18/2017 12:57 PM, Massimo Manghi wrote:
On 10/18/2017 11:18 AM, Alexey Noskov wrote:
Dear All,
Recently, I have encountered with two troubles.
1)))
Because of some reason it quite difficult to configure Apache Rivet to
use UTF-8 properly.
It responded a web pages in ISO8859-1 instead of UTF-8.
I've just finished a couple of pure UTF-8 web sites and it wasn't that
hard.
The following Apache configuration DO NOT (surprisingly to me) make
rivet to respond a proper UTF-8 pages
(because of headers configuration browser detects it as UTF-8, but
text itself is
encoded in ISO8859-1):
/AddDefaultCharset UTF-8/
/AddType application/x-httpd-rivet .rvt
AddType application/x-rivet-tcl .tcl
AddType 'application/x-httpd-rivet;charset=utf-8' rvt
AddType 'application/x-rivet-tcl;charset=utf-8' tcl/
Remove the first two AddType definitions. Just
AddType 'application/x-httpd-rivet;charset=utf-8' rvt
AddType 'application/x-rivet-tcl;charset=utf-8' tcl
AddDefaultCharset is a weapon to be used with care because it affects
other web sites hosted on the same Apache instance. For debugging add
also the directive
RivetServerConf HonorHeaderOnlyRequests On
Sorry, this conf line actually is not needed if you're using the http
package, but it's needed if you want to check the metadata with the HEAD
utility in Debian's libwww-perl package
-- Massimo
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org