Skip to content
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 for UTF-8 to ASCII8 #163

Open
Overload119 opened this issue Nov 4, 2022 · 0 comments
Open

Encoding::UndefinedConversionError for UTF-8 to ASCII8 #163

Overload119 opened this issue Nov 4, 2022 · 0 comments

Comments

@Overload119
Copy link

Overload119 commented Nov 4, 2022

I'm coming from here.

I was wondering if there's a good fix in this library itself.
I'm happy to make it if someone can point me in the right direction, but it seems like this library uses ASCII intentionally (based on the encodings at the top of the files I saw)

I was able to change this line to fix the issue but it seems like the broader issue is that strings are in ASCII.

history_file.puts line.encode('UTF-8', invalid: :replace, undef: :replace, replace: '?') if history_file

Reproduce: Open Pry and use this string: '’ this will break pry!'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant