"\xE2" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
Closed this issue · 2 comments
crevete commented
Hello,
After upgrading to 2.0.0, when I run rails test test/my_test.rb --junit
, I got this error when calling Ox.dump(doc)
:
[...]/minitest-junit-2.0.0/lib/minitest/junit.rb:50:in `write': "\xE2" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
I found a workaround to fix this issue by forcing encoding of the Ox::Document
object to UTF-8 during initialization:
doc = Ox::Document.new(version: '1.0', encoding: 'UTF-8')
@aespinosa Can you please patch this ASAP? Thanks
davidwessman commented
That sound reasonable!
I am not able to do anything before Monday, so better downgrade and then write a PR with a test 😊