lib/fop/client.rb in fop-0.1.0 vs lib/fop/client.rb in fop-0.1.1

- old
+ new

@@ -192,17 +192,17 @@ rescue JSON::ParserError raise DataParseError, "Failed to parse #{variable.inspect} from data_js" end def post_form(data) - Nokogiri::HTML(Net::HTTP.post_form(ENDPOINT_URI, data).tap(&:value).body.encode("UTF-8", "Shift_JIS")) + Nokogiri::HTML(Net::HTTP.post_form(ENDPOINT_URI, data).tap(&:value).body) end def form_page - @form_page ||= Nokogiri::HTML(open(ENDPOINT_URI, 'r', &:read).encode("UTF-8", "Shift_JIS")) + @form_page ||= Nokogiri::HTML(open(ENDPOINT_URI, 'r', &:read)) end def data_js - @data_js ||= open(DATA_JS_URI, 'r', &:read).encode("UTF-8", "Shift_JIS") + @data_js ||= open(DATA_JS_URI, 'r', &:read) end end end