Skip to content

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

@Overload119

Description

@Overload119

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!'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions