Forum OpenACS Q&A: Response to Support for multibyte: .tcl ok .adp not

Posted by Kenny Chiang on

Thanks for your code, it works for me too except I need to make a bit of modification as follows:
    if { $cache_p } {
              eval "uplevel { ns_write "$http_header[ns_startcontent -type "$mimetype"][ns_adp_eval -parser fancy {$template}]" }"
          } else {
              eval "uplevel { ns_return 200 "$mimetype" [ns_adp_eval -parser fancy {$template}] }"
since my mimetype is "text/html; charset=big5" that needs to be enclosed in double quote.

Thanks again.