diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/json/lib/json/pure/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/lib/json/pure/parser.rb b/ext/json/lib/json/pure/parser.rb index a0ab3075f..9c3fea91d 100644 --- a/ext/json/lib/json/pure/parser.rb +++ b/ext/json/lib/json/pure/parser.rb @@ -146,7 +146,7 @@ module JSON raise JSON::ParserError, "partial character in source" if stack res.pack("U*") end - end + end.force_encoding("UTF-8") else UNPARSED end |