How to input Unicode character in Rails console?

前端 未结 2 1608
悲&欢浪女
悲&欢浪女 2021-01-04 10:42

While using Rails console, when I input ä, \\U+FFC3\\U+FFA4 appears. Of course I can input Unicode characters outside of rails.

I\'m using

2条回答
  •  余生分开走
    2021-01-04 11:39

    Most likely you've got readline issue, try to re-install Ruby with readline support. https://github.com/wayneeseguin/rvm/issues/1016 or http://blog.rlmflores.me/blog/2012/04/25/adding-utf-8-support-to-rubies-compiled-through-ruby-build/

提交回复
热议问题