lib/css_parser/parser.rb in css_parser-1.19.1 vs lib/css_parser/parser.rb in css_parser-1.20.0

- old
+ new

@@ -675,15 +675,10 @@ src = io.inflate(res.body) end end if charset - if String.method_defined?(:encode) - src.encode!('UTF-8', charset) - else - ic = Iconv.new('UTF-8//IGNORE', charset) - src = ic.iconv(src) - end + src.encode!('UTF-8', charset) end rescue @redirect_count = nil raise RemoteFileError, uri.to_s if @options[:io_exceptions]