Skip to content

Encoding::UndefinedConversionError  #92

@ktimothy

Description

@ktimothy

My test suite fails with error when trying to encode hostname:

.../rspec_junit_formatter-0.4.1/lib/rspec_junit_formatter.rb:173:in `encode': "\\xE2" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
irb(main):003:0> Socket.gethostname
=> "timofei.kovalev\xE2\x80\x99s-MacBook-Pro"
irb(main):004:0> Socket.gethostname.encoding
=> #<Encoding:ASCII-8BIT>

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