Commit cba81323f445ab63bd45c8b9196a9d9b92d0a3c3
1 parent
51d18744
Exists in
master
and in
1 other branch
Removed string repacking to fix Chinese encoding errors (fixes #124)
Showing
1 changed file
with
0 additions
and
1 deletions
Show diff stats
lib/hoptoad.rb
... | ... | @@ -8,7 +8,6 @@ module Hoptoad |
8 | 8 | end |
9 | 9 | |
10 | 10 | def self.parse_xml!(xml) |
11 | - xml = xml.unpack('C*').pack('U*') # Repack string into Unicode to fix invalid UTF-8 chars | |
12 | 11 | parsed = ActiveSupport::XmlMini.backend.parse(xml)['notice'] || raise(ApiVersionError) |
13 | 12 | processor = get_version_processor(parsed['version']) |
14 | 13 | processor.process_notice(parsed) | ... | ... |