• 기본 encoding : UTF-8
  • 한글 사용을 위해서는 readline 패키지 필요
  • Ruby를 설치할 때 마다 readline 경로를 명시해야되나, rbenv plugin을 사용하면 자동으로 경로가 지정됨


brew install readline
git clone git://github.com/tpope/rbenv-readline.git ~/.rbenv/plugins/rbenv-readline
rbenv install <ruby_version>

이미 설치되어 있는 경우, 해당 버전의 ruby를 삭제하고 재설치

rbenv uninstall <ruby_version>
rbenv install <ruby_version>

irb에서는 한글이 제대로 입력되는데, rails console에서는 그대로 UTF-8로 나오는 경우에, 재부팅을 하고 나니 제대로 한글이 입력되더라.


all credit to https://blog.iamseapy.com/archives/177