Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[root@lemaker ~]# sjunkieex
/root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:388:in `match': invalid byte sequence in US-ASCII (ArgumentError)
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:388:in `match'
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:388:in `block in add_dtd_reference'
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:388:in `reject!'
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:388:in `add_dtd_reference'
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:364:in `open_xml_file'
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:317:in `parse_file'
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:25:in `initialize'
from /root/.gem/ruby/2.2.0/gems/sjunkieex-0.1.4/bin/sjunkieex:60:in `new'
from /root/.gem/ruby/2.2.0/gems/sjunkieex-0.1.4/bin/sjunkieex:60:in `<top (required)>'
from /root/.gem/ruby/2.2.0/bin/sjunkieex:23:in `load'
from /root/.gem/ruby/2.2.0/bin/sjunkieex:23:in `<main>'
FIX:
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:364:in `open_xml_file'
xml_content = add_dtd_reference(File.read(file).force_encoding("ISO-8859-1").encode("utf-8", replace: nil).lines.to_a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment