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

thunder123bird · 2012年08月09日 · 最后由 luikore 回复于 2012年08月09日 · 4456 次阅读

如题!

如果是 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 了

需要 登录 后方可回复, 如果你还没有账号请 注册新账号