[
https://issues.apache.org/jira/browse/TAP5-412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12655740#action_12655740
]
Franz Amador commented on TAP5-412:
-----------------------------------
Strangely, the problem appears or disappears on restarting the server. Is
there a race condition in Tapestry that influences which version of
JSONArrayEventResultProcessor gets used for a given startup of the system?
> Ajax response returning JSONArray gets wrong Content-Type, messes up Unicode
> characters
> ---------------------------------------------------------------------------------------
>
> Key: TAP5-412
> URL: https://issues.apache.org/jira/browse/TAP5-412
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.17
> Reporter: Franz Amador
>
> An Ajax component event handler that returns a JSONArray gets response
> Content-Type "application/json;charset=ISO-8859-1", while returning a
> JSONObject gets Content-Type "application/json;charset=UTF-8". This messes
> up Unicode characters in data returned as a JSONArray. The problem appears
> to result from the existence of
> org.apache.tapestry.commons.services.JSONArrayEventResultProcessor, which
> handles the response instead of
> org.apache.tapestry5.internal.services.JSONArrayEventResultProcessor. The
> latter looks correct, but it is apparently being shadowed by the former.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]