Tempfile encoding ascii-8bit #6

Yardboy opened this Issue Sep 11, 2013 · 2 comments


None yet

3 participants


I'm getting the following error from line 67 of doc_raptor.rb:

"\xE2" from ASCII-8BIT to UTF-8

I've discovered that if I change line 65 in doc_raptor.rb from:

Tempfile.open("docraptor") do |f|


Tempfile.open("docraptor", :encoding => "ascii-8bit") do |f|

...then the problem is solved.

This appears to be related to my Rails app application.rb having the following:

config.encoding = "utf-8"

This, as I understand it, is the default for Rails 3+. Should I submit a patch with this change?

Expected Behavior member

@Yardboy Yeah, a patch would be awesome!

Expected Behavior member

Released version 0.3.3 with your fix from #8.

@jqr jqr closed this Feb 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment