why expect make the Chinese code garbled
- From: Jason <luoyuhong@xxxxxxxxx>
- Date: Wed, 30 Jul 2008 19:28:47 -0700 (PDT)
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
.
- Follow-Ups:
- Re: why expect make the Chinese code garbled
- From: Cameron Laird
- Re: why expect make the Chinese code garbled
- Prev by Date: Re: spawn sh -c "ssh -T $host -l $user <$JOBSCRIPT" #HowCanI elim sh?
- Next by Date: upgrade problem tcl/tk-8.4 -> 8.5 -- please help
- Previous by thread: How do I find out the default color used in my TK GUI?
- Next by thread: Re: why expect make the Chinese code garbled
- Index(es):
Relevant Pages
|