This project is archived and is in readonly mode.

#1592 ✓invalid
chad.ingram (at me)

ActiveSupport::JSON.decode doesn't unescape unicode characters

Reported by chad.ingram (at me) | December 17th, 2008 @ 07:31 PM | in 3.x


>> s = "{\"test\": \"\\u201cquoted\\u201d\"}"
=> "{\"test\": \"\\u201cquoted\\u201d\"}"
>> ActiveSupport::JSON.decode(s)
=> {"test"=>"\\u201cquoted\\u201d"}
>> require 'json'
=> []
>> JSON.parse(s)
=> {"test"=>"“quoted”"}

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages