Re: why expect make the Chinese code garbled
- From: claird@xxxxxxxxx (Cameron Laird)
- Date: Thu, 31 Jul 2008 12:59:35 +0000
In article <1c88d931-09a3-4963-95d0-36f56db18d74@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Jason <luoyuhong@xxxxxxxxx> wrote:
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?
.
.
I it were mine, my next step would be to use autoexpect <URL:
http://wiki.tcl.tk/autoexpect >, and see what I learn from that.
.
- Follow-Ups:
- Re: why expect make the Chinese code garbled
- From: Jason
- Re: why expect make the Chinese code garbled
- References:
- why expect make the Chinese code garbled
- From: Jason
- why expect make the Chinese code garbled
- Prev by Date: Re: WebKit
- Next by Date: worker thread status
- Previous by thread: why expect make the Chinese code garbled
- Next by thread: Re: why expect make the Chinese code garbled
- Index(es):
Relevant Pages
|