Hi folks

I'm working on a project where documents will be served encoded with UTF-8. I
thought that I could simply add "headers type 'text/html; charset=utf-8" in the
'BeforeScript' evaluated at every request. It did not work. Instead the
"Content-Type:" header value is returned corrupted.

I remember this command worked well and I've been using it in tcl scripts for a
long time now. As a matter of fact, moving the 'headers' call to the very
beginning of the requested template restores the correct header, but this is
matter for investigation, not just because I prefer to keep the template clean
before the DOCTYPE declaration.

Just asking if someone has any clue (D-D?): ParseExecFile (IIRC) apparently
concatenates BeforeScript+ParsedRvtTemplate+AfterScript without manipulation in
between. Still something goes wrong.

-- Massimo


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to