why expect make the Chinese code garbled



Hi all,

I use expect scripts in gnome-terminal to login a bbs

=============================
#!/usr/bin/expect
set user [lindex $argv 0]
spawn ssh $user@asite

interact timeout 160 {send "jk"}
exit
============================

The bbs site is Chinese character, if I just use ssh command, Chinese
character is readable, but if I use expect scripts, it make Chinese
character garbled. I read the expect manual page, there is no anything
about charset. what can I do?

thanks!

Jason
.



Relevant Pages

  • Re: why expect make the Chinese code garbled
    ... spawn ssh $user@asite ... The bbs site is Chinese character, if I just use ssh command, Chinese ... character is readable, but if I use expect scripts, it make Chinese ...
    (comp.lang.tcl)
  • Re: why expect make the Chinese code garbled
    ... spawn ssh $user@asite ... character is readable, but if I use expect scripts,  it make Chinese ... I don't know how to set it in expect scripts, ...
    (comp.lang.tcl)
  • Re: Eiffel PS/2
    ... thats how I do scripts for my BBS... ... Welcome To DarkForce! ... www.darkforce.org "The Fuji Lives.!" ...
    (comp.sys.atari.st)