新手问题 如何让 rails console 正常显示中文?

thunder123bird · August 09, 2012 · Last by luikore replied at August 09, 2012 · 4456 hits

如题!

如果是 windows,换几个版本的 readline 重新编译一下试试 ...

如果是 rvm,参见 https://gist.github.com/1968562

如果你的 shell 是 bash 并且有能看中文但不能输入中文的问题,大概是 ~/.inputrc 缺少这几行:

# utf-8 I/O
set input-meta on
set output-meta on
set convert-meta off

zsh 就不用管 ~/.inputrc 了

You need to Sign in before reply, if you don't have an account, please Sign up first.