mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
8f8397e0a4
The encoding scheme (e.g. ☠ -> "\u2620") was broken for characters not in the Basic Multilingual Plane. It is possible to escape them for json using the weird encoding scheme of a twelve-character sequence representing the UTF-16 surrogate pair (e.g. '𠜎' -> "\u270e\u263a") but this wasn't properly handled in the escaping code. Since raw UTF-8 is allowed in json, it was decided to simply pass through the raw bytes rather than attempt to escape them. |
||
---|---|---|
.. | ||
decoding_test.rb | ||
encoding_test.rb |