diff --git a/lib/oga/lexer.rl b/lib/oga/lexer.rl index 2f4560d..27c9f6c 100644 --- a/lib/oga/lexer.rl +++ b/lib/oga/lexer.rl @@ -95,7 +95,7 @@ module Oga # @return [Array] # def lex(data) - @data = data.codepoints + @data = data.unpack('U*') lexer_start = self.class.lexer_start eof = data.length