Re: Encoding problem (UTF-8)
Hi. The problem was tomcat's version. On Ubuntu I was using tomcat 5.5 and on Windows Tomcat 6. I just installed Tomcat 5.5 on Windows too and the problem was fixed. Of course you need to put the URIEncoder on the connectors of tomcat, add the the parameter -Dfile.encoding=UTF-8 to JAVA_OPTS, change the IDE to UTF-8, etc. -- View this message in context: http://www.nabble.com/Encoding-problem-%28UTF-8%29-tp16984643p17275086.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encoding problem (UTF-8)
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]
Re: Encoding problem (UTF-8)
Hi, We're using autocomplete mixin with no problem, maybe this help. http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding Marcus