j> I develop in Ubuntu and changing all to UTF-8 fixed both problems, but on
j> Windows dose not works with the JSONObject. The database is on UTF-8, all
j> data is saved ok, the only problem I get is when returning data on a
j> JSONObject.

Some problem with TextStreamResponse (TAPESTRY-2058). Fix it:

class TextStreamResponse ...

      + private String _charset; // charset get from 
_contentType(";charset=UTF-8")
                                 // or get from tapestry.response-encoding

public InputStream getStream() throws IOException {
       - return new ByteArrayInputStream(_text.getBytes());
       + return new ByteArrayInputStream(_text.getBytes(_charset));
}

...

return new TextStreamResponse("application/json", jsonObject.toString());


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to