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

Collapse
Posted by Kenny Chiang on
Gaizka,

<p>
Thanks for your code, it works for me too except I need to make a bit of modification as follows:
<p>
<pre>
    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}] }"
          }
</pre>
<p>
since my mimetype is "text/html; charset=big5" that needs to be enclosed in double quote.

<p>
Thanks again.