nytimes / Fech

Deprecated. Please see https://github.com/dwillis/Fech for a maintained fork.
http://nytimes.github.io/Fech/
Other
115 stars 30 forks source link

Update filing.rb #52

Closed jgillum closed 11 years ago

jgillum commented 11 years ago

Attempted fix of F99 files in Ruby 1.9 that display the "invalid byte sequence in UTF-8" error.

dwillis commented 11 years ago

Thanks - I've incorporated some of this into 6446b0bd077db07f190ff25c6a7c04ef1afb35bb, which fixes the issue on 1.8.7, 1.9.2 and 1.9.3. For 1.9.3, iconv is deprecated, so I switched to String#encode!, while using iconv for the older versions.