summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/json/lib/json/pure/parser.rb2
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 a0ab3075fe..9c3fea91da 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