Dispatch json have some charset issues

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Dispatch json have some charset issues

thoredge
It seems all other parts of dispatch works very well with regards to charset. However in the dispatch json dispatch/json/Json.scala line 121 the InputStreamReader is instantiated with platform default character encoding. That leads to json messages being read as macroman (or something on my macosx)

I made a copy and changed it to UTF-8 which made it work fine. Is it possible to get dispatch.json changed in later versions to either use defaultFactory from Request or just hard-coded to UTF-8 (since that is the default encoding for json according to RFC 4627).

Have a nice day
ThorĂ…ge
Reply | Threaded
Open this post in threaded view
|

Re: Dispatch json have some charset issues

n8han
Administrator
Alright, I made an issue for this:
https://github.com/n8han/databinder-dispatch/issues/23

Thanks for reporting it!

Nathan

On 04/08/2011 04:28 AM, thoredge [via Databinder] wrote:
It seems all other parts of dispatch works very well with regards to charset. However in the dispatch json dispatch/json/Json.scala line 121 the InputStreamReader is instantiated with platform default character encoding. That leads to json messages being read as macroman (or something on my macosx)

I made a copy and changed it to UTF-8 which made it work fine. Is it possible to get dispatch.json changed in later versions to either use defaultFactory from Request or just hard-coded to UTF-8 (since that is the default encoding for json according to RFC 4627).

Have a nice day
ThorĂ…ge


If you reply to this email, your message will be added to the discussion below:
http://databinder.3617998.n2.nabble.com/Dispatch-json-have-some-charset-issues-tp6252896p6252896.html
To start a new topic under Databinder, email [hidden email]
To unsubscribe from Databinder, click here.