You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Unbelievable, this code with Czech characters and MIME type set to text/json
works well:
>
> GPRestfulHandler(WARestfulHandler)>>czechTestReal
> <get>
> <path: 'czechTestReal'>
> <produces: 'text/json; charset=utf-8'>
> ^ 'Czech is in Czech čeština.' asJson
>
> This code with Czech characters and MIME type set to application/json throws
an error.
>
> GPRestfulHandler(WARestfulHandler)>>czechTestReal
> <get>
> <path: 'czechTestReal'>
> <produces: 'application/json; charset=utf-8'>
> ^ 'Czech is in Czech čeština.' asJson
>
> There is difference only in produces - text/json vs. application/json, but
there are probably different stream - text vs. binary.
Great that you found it !
Indeed, consider:
(WAMimeType fromString: 'text/json') isBinary. false
(WAMimeType fromString: 'application/json') isBinary. true
(ZnMimeType fromString: 'text/json') isBinary. false
(ZnMimeType fromString: 'application/json') isBinary. false
I made an explicit exception for application/json in ZnMimeType ;-)
Original issue reported on code.google.com by philippe...@gmail.com on 28 Jun 2013 at 7:37
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
philippe...@gmail.com
on 28 Jun 2013 at 7:37The text was updated successfully, but these errors were encountered: