# Missing chars problem with ActiveSupport::JSON.decode

**URL:** <https://discuss.rubyonrails.org/t/missing-chars-problem-with-activesupport-json-decode/43145>\
**Category:** rubyonrails-core\
**Created:** [June 3, 2009, 3:45pm UTC](https://discuss.rubyonrails.org/t/missing-chars-problem-with-activesupport-json-decode/43145 "2009-06-03T15:45:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lobo\_tuerto](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@lobo\_tuerto](https://discuss.rubyonrails.org/u/lobo_tuerto)\
**Post date:** [June 3, 2009, 3:45pm UTC](https://discuss.rubyonrails.org/t/missing-chars-problem-with-activesupport-json-decode/43145/1 "2009-06-03T15:45:35Z")

</div>

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](http://pastie.org/497986) Any tips, advices, pointers on this?

Regards.

---

<div class="post-metadata">

**Author:** ![Michael\_Koziarski1](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@Michael\_Koziarski1](https://discuss.rubyonrails.org/u/Michael_Koziarski1)\
**Post date:** [June 6, 2009, 5:20am UTC](https://discuss.rubyonrails.org/t/missing-chars-problem-with-activesupport-json-decode/43145/2 "2009-06-06T05:20:06Z")

</div>

> 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](http://pastie.org/497986) Any tips, advices, pointers on this?

Could you provide us with a failing test case for activesupport?
