I use utf-8 as the default encoding on my web server. All templates are utf-8, but when I started to use websh for template processing, I found it was not so easy to change the encoding to utf-8. As I haven't found a solution on the web, I fiddled it together myself. Hope my solution prevents other people from giving up. ====== package require websh ## Setup output charset to utf-8. web::response -set Content-Type {text/html; charset=utf-8} encoding system utf-8 fconfigure stdout -encoding [encoding system] ====== See also: * [websh] * http://tcl.apache.org/websh/ <>Internet