※ 引述《sunkill (風樹)》之銘言:
> ※ 引述《[email protected] (>/dev/null)》之銘言:
> > UTF-8 環境之下連 BBS 的話
> > 用 screen 加設 key binding 來切換 encoding 應該蠻方便的
> > bind b encoding big5 utf-8
> > bind u encoding utf-8 utf-8
> 可是我在 console 下直接用 telnet 連沒有亂碼問題
> 但用 expect 的 spawn 來開起連線就會整片亂碼
> 不知是何固?
> 謝謝
自問自答
我在 console 的 expect spawn telnet 出去雖是亂碼
但其 expect/send 的中文觸發卻能正常起動
用了 screen + bind 還是亂碼
後來只好這樣
LC_ALL=C;expect -f file.exp
這樣可以暫時解決亂碼問題
--
※ Origin: SayYA 資訊站 <bbs.sayya.org>
◆ From: 122-116-15-111.hinet-ip.hinet.net