# Wierd encoding problem

**URL:** <https://www.ruby-forum.com/t/wierd-encoding-problem/222547>\
**Category:** Rails\
**Created:** [September 1, 2012, 12:03pm UTC](https://www.ruby-forum.com/t/wierd-encoding-problem/222547 "2012-09-01T12:03:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [September 1, 2012, 12:03pm UTC](https://www.ruby-forum.com/t/wierd-encoding-problem/222547/1 "2012-09-01T12:03:02Z")

</div>

I put the complete error description into a gist  
([gist:5d2cef1414f1643fca5a · GitHub](https://gist.github.com/5d2cef1414f1643fca5a)) for better readability.

The basic problem is that a properly encoded Json post request gets  
decoded an a very weird way. For example a “” which is encoded as  
“\u00fc” in uft-8 becomes “\>\x93” or “~\xD4”. I get different results  
ever time I run the decoder.  
Please take a look at the gist, I did my best to give as much useful  
information as possible.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Martin\_Klepsch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/82dd89/32.png) [@Martin\_Klepsch](https://www.ruby-forum.com/u/Martin_Klepsch)\
**Post date:** [September 1, 2012, 12:13pm UTC](https://www.ruby-forum.com/t/wierd-encoding-problem/222547/2 "2012-09-01T12:13:35Z")

</div>

On Wednesday, August 29, 2012 8:55:46 AM UTC+1, Martin Klepsch wrote:

> What multijson backend are you using (and what ruby version) ?

Fred
