From: Taguchi T. <ta...@to...> - 2003-11-25 07:46:37
|
Sorry, Jeff. I'm using apache rivet. so *.tcl file is evaluated as rivet acript firstly. Rivet is a "Tcl" interp. so any Tk command get errors. I've modify my apache httpd.conf file. then this probrem was resolved. By the way, I think current tclplugin assume all tclet is wrriten using UTF-8 encoding. This means, in the web page which is writen euc-jp encoding, SCRIPT itself must use UTF-8 encoding. Euc-jp encoded file can not contain any UTF-8 string. I think tclet encoding may be able to set by tclet author. such as: <embed type="x-application/tcl" src="./sample-tclet.tcl" charset="euc-jp" ...> So I've made a patch. BEGIN>--8<CUT HERE>8--- --- library/browser.tcl~ Tue Dec 24 08:05:53 2002 +++ library/browser.tcl Tue Nov 25 13:53:13 2003 @@ -690,6 +690,14 @@ return } + # convert from external encoding to utf-8 using charset arg.. + if {[interp eval $name [list info exists embed_args(charset)]] && \ + [lsearch [encoding names] \ + [set encoding [interp eval $name \ + [list set embed_args(charset)]]]] > -1} { + set chunk [encoding convertfrom $encoding $chunk] + } + IAppend $name stream,$stream,data $chunk log $name "stored data for $stream in stream,$stream,data attr" END>---8<CUT HERE>8--- Thanks. -- T.Taguchi. |