lib/dmapparser/parser.rb in dmapparser-0.0.1 vs lib/dmapparser/parser.rb in dmapparser-0.0.2
- old
+ new
@@ -12,10 +12,10 @@
end
def initialize(response)
@response = response
@response = StringIO.new(response) unless @response.is_a? IO
- @response.set_encoding(Encoding::UTF_8) # Use unicode
+ @response.set_encoding(Encoding::BINARY) # Use unicode
end
def parse
return nil if @response.nil? || @response.size == 0
fail ParseError if @response.size < 8