-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoding::UndefinedConversionError #69
Comments
Got this, too. Looks like a bug to me. |
+1
|
Some other guy also documented the problem: https://gist.github.com/atton-/5facfe29cf251ef9323f |
👍 |
definitely an issue with pry-rails |
Could someone try running the Rails console without pry-rails, opening Pry by typing |
Sorry,
|
+1 |
2 similar comments
+1 |
+1 |
Just remove the 'rb-readline' gem if you are on a linux like system. |
Removing rb-readline solved the issue for me. |
However, if you remove rb-readline, we won't be able to type non-ascii character on the console |
I've solved this. |
http://altarf.net/computer/rails/3222 add
and it works for me. |
+1 |
Had same error on Linux in Docker image. Problem was in system locale settings (it was set to Fixed by setting locale to Unicode-enabled one: FROM ruby:2.6.2
RUN apt-get update && apt-get install -y locales && update-locale LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 In your local system check output of |
I was able to "fix" this by adding this line in:
Of course the issue is still there, so I opened an issue in RbReadline (see ConnorAtherton/rb-readline#163) |
When I paste "ñ" (with quotes) in to the console with pry-rails (0.3.3) enabled I will get an Encoding::UndefinedConversionError error.
If I disable
pry-rails
in my Gemfile I get the expected output.I'd love to get to the bottom of this, so please let me know if there's any additional information I can provide.
The text was updated successfully, but these errors were encountered: