Hi guys, I spotted a problem when encoding and decoding a string that contained a few accented characters in it. The issue doesn''t present itself when done through the JSON.parse method from the "json" gem... but we all know what happens if we require that gem inside a Rails app... :( Anyways, here is the problem illustrated: http://pastie.org/497986 Any tips, advices, pointers on this? Regards.
Michael Koziarski
2009-Jun-06 05:20 UTC
Re: Missing chars problem with ActiveSupport::JSON.decode
> Hi guys, I spotted a problem when encoding and decoding a string that > contained a few accented characters in it. > > The issue doesn''t present itself when done through the JSON.parse > method from the "json" gem... but we all know what happens if we > require that gem inside a Rails app... :(This should be fixed when we release 2.3.3, we''ve backported the ''nicer to_json'' changes from 3.0 which should allow for pluggable backends.> Anyways, here is the problem illustrated: http://pastie.org/497986 > Any tips, advices, pointers on this?Could you provide us with a failing test case for activesupport?> Regards. > > > >-- Cheers Koz