Tempfile encoding ascii-8bit #6

Closed
Yardboy opened this Issue Sep 11, 2013 · 2 comments

Projects

None yet

3 participants

@Yardboy

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|

to

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?

@janxious
Expected Behavior member

@Yardboy Yeah, a patch would be awesome!

@jqr
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