Mail Archive Home | enhydra List | October 2004 Index
| <-- Date Index | <-- Thread Index |
|
Hi, I'm trying to make my enhydra application work in UTF-8 encoding under Enhydra Enterprise Server 6.0.1. I made the fowling: 1) In all html pages I set to UTF-8 2) In all xmlc files I added the command "-html:encoding utf-8" 3) In my application main class I added (marked in bold font) public class Myapp extends StandardApplication { ... public boolean requestPreprocessor(HttpPresentationComms comms) throws Exception { comms.response.setEncoding("UTF-8"); comms.request.getHttpServletRequest().setCharacterEncoding("UTF-8"); return super.requestPreprocessor(comms); } ... } In result, the server responce is truly set in UTF-8 (all non-latin characters out are OK), but when I enter non-latin characters in forms, the application show them then in incorrect way. So, as I understand, the request is not switched well to UTF-8. How to make correct UTF-8 request encoding? Andrey Ryzhkov. |
| <-- Date Index | <-- Thread Index |
Powered by MHonArc.
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.