|
Re: [enhydra] Problem with UTF-8 on EE-6.5-1: msg#00023java.enhydra.general
Hi Daniel, you will have to set 'response' encoding from your PO implementation ('run(HttpPresentationComms myComms)' method)! In your case should look something like this: //Set the 'HttpPresentationResponse' output character encoding myComms.response.setEncoding("UTF-8"); Additionally you are advised to set: //Overrides the name of the character encoding used in the body of this request. //This method must be called prior to reading request parameters or reading input using getReader() myComms.request.getHttpServletRequest().setCharacterEncoding("UTF-8"); This should resolve your problem. I have attached simple Enhydra demo application that should clear out this encoding issue. It is basic enhydra demo application extended with simple table. This table contains: 1. Encoding table - header row 2. Text Received - row that presents previously sent (UTF-8 encoded) text 3. text input field - where you can type your special characters 4. submit button - submits typed text as (POST) parameter which will be shown in 'Text Received' row (on response page) You can check out "RedirectPresentation" PO object implementation! Here you can find useful code snippets managing cases when you are using 'ClientPageRedirectException' or 'ServerPageRedirectException' redirects with encoded requests. Initially, this application is implemented to use "RedirectPresentation" PO object. You can manually edit 'options.xmlc' file to change this default application behavior and use "WelcomePresentation" PO object only (directly not trough "RedirectPresentation"). NOTE: This demo application is developed in EnhydraIDE (Eclipse 3.0 + Kelp) that comes with Enhydra Enterprise 6.5-1 on Windows platform. To rebuild this application (by using 'enhydra-ant' script) you will have to change 'enhydra.dir' property setting defined in projects 'build.xml' file (placed in root projects directory). Additionally, if you want to load application in your EnhydraIDE installation you will have to adapt absolute paths in '.project' and '.classpath' Eclipse project files (depending of your local Enhydra Enterprise installation path). Hope this helps! Any feedback is very welcome! Regards, Slobodan Vujasinovic Enhydra Development Team Daniel Guryca wrote: Michael Warne wrote:
-- You receive this message as a subscriber of the enhydra@xxxxxxxxxxxxx mailing list. To unsubscribe: mailto:enhydra-unsubscribe@xxxxxxxxxxxxx For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [enhydra] Problem with UTF-8 on EE-6.5-1, Daniel Guryca |
|---|---|
| Next by Date: | Re: [enhydra] Problem with UTF-8 on EE-6.5-1, Michael Strapp |
| Previous by Thread: | Re: [enhydra] Problem with UTF-8 on EE-6.5-1, Daniel Guryca |
| Next by Thread: | Re: [enhydra] Problem with UTF-8 on EE-6.5-1, Daniel Guryca |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |