This project is archived and is in readonly mode.
ActiveSupport::JSON.decode doesn't unescape unicode characters
-
Lukas Fittl
Works for me as of Rails 2.3.2.
I suggest closing this ticket.
-
Ken Miller
I'm seeing this in 2.1.2, but only on Linux (not Mac OS X). Upgrading to 2.3.x soon, but it might be worth investigating whether this is platform-dependent in 2.3 as well.
-
Ken Miller
Actually, scratch that. Above code fails in OS X as well, but works in 2.3.2.
-
Christian Seiler
yep, works in 2.3.5. Fails in 2.2.3
-
Oriol Gual
- Importance changed from to
This seems fixed right now (using 1.9.2 with 3.0.3)
s = "{"test": "\u201cquoted\u201d"}" => "{"test": "\u201cquoted\u201d"}" s => "{"test": "\u201cquoted\u201d"}" ActiveSupport::JSON.decode(s) => {"test"=>"“quoted”"}
-
kevmoo
Also confirmed fixed in 3.0.3
Close it!
-
Rohit Arondekar
- State changed from new to invalid