--- Reçu de INFETUDE.G145193 02/250.96.71 31-01-03 09.39
From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Tue, 28 Jan 2003 13:11:00 +0100 Subject: special character (JSP) éà --- Reçu de INFETUDE.G145193 02/250.96.71 28-01-03 13.11 Hi, I have a problem with character encoding in Cocoon with character French (éà..) I have Tomcat 4.1.12, JDK 1.3 and Cocoon 2.0.3 My JSP is generate via VaGen (VisualAge generator of IBM) Without Cocoon, the application run correctely. I have in my JSP <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> The form and data entry are correct without cocoon With cocoon, the form is correct (with charset=UTF-8 in JSP) <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> but the data entry is not correct, e.g. enter data "René" give following result : "René" A part of Core.log after entry data in JSP ------------------ CONTEXT PATH: /VagenWebModule SERVLET PATH: /JAH0001WUI.jsp PATH INFO: null REMOTE HOST: localhost REMOTE ADDRESS: 127.0.0.1 REMOTE USER: null REQUEST SESSION ID: 9C392441C5CCA3C8D565427BA033DE2F REQUEST PREFERRED LOCALE: fr_BE SERVER HOST: localhost SERVER PORT: 8080 METHOD: POST CONTENT LENGTH: 324 PROTOCOL: HTTP/1.1 SCHEME: http AUTH TYPE: null CURRENT ACTIVE REQUESTS: 1 REQUEST PARAMETERS: PARAM: 'hptRecord' VALUES: '[JAH0001WUI]' PARAM: 'hptExec' VALUES: '[Y]' PARAM: 'XLOC002' VALUES: '[STREPY BRACQUEGNIES]' PARAM: 'MESSAGE' VALUES: '[]' PARAM: 'ENREGISTRER-BUTTOM' VALUES: '[Enregistrer]' PARAM: 'NOAGENT' VALUES: '[06662]' PARAM: 'EMAIL' VALUES: '[]' PARAM: 'RL' VALUES: '[FR]' PARAM: 'TEL' VALUES: '[078159090]' PARAM: 'XNUM007' VALUES: '[715]' PARAM: 'FIELDCURSOR' VALUES: '[NOAGENT]' PARAM: 'ORB-RETURNCD' VALUES: '[]' PARAM: 'XNUM017' VALUES: '[77]' PARAM: 'XNOM002' VALUES: '[AGENCE DE LA LOUVIERE]' PARAM: 'XCOD707' VALUES: '[CONSEILLER ]' PARAM: 'XNOM001' VALUES: '[BERTONI, René]' <!-- result --> PARAM: 'XCOD013B' VALUES: '[7110]' PARAM: 'XRUE001' VALUES: '[RUE DE LA CROIX ROUGE, 15]' PARAM: 'XNUM040' VALUES: '[3568]' PARAM: 'hptAppId' VALUES: '[JAH0001]' PARAM: 'XCOD004' VALUES: '[FR ]' HEADER PARAMETERS: PARAM: 'accept' VALUES: '[application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*]' PARAM: 'referer' VALUES: '[http://localhost:8080/VagenWebModule/vgnt?hptAppId=JAH0001&hptExec=Y&hptR ecord=JAH0001WUI]' -------------------------- I have add in the Sitemap.xmap, but the result is same <map:serializer logger="sitemap.serializer.xml" mime-type="text/xml" name="xml" src="org.apache.cocoon.serialization.XMLSerializer"> <encoding>UTF-8</encoding> </map:serializer> <map:serializer logger="sitemap.serializer.html" mime-type="text/html" name="html" pool-grow="4" pool-max="32" pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer"> <encoding>UTF-8</encoding> <omit-xml-declaration>true</omit-xml-declaration> <buffer-size>1024</buffer-size> </map:serializer> ..... <map:action name="set-encoding" src="org.apache.cocoon.acting.SetCharacterEncodingAction"/> ..... <map:act type="set-encoding"> <map:parameter name="form-encoding" value="UTF-8"/> </map:act> With ISO-8859-1 in JSP, the form and data entry are not correct. Thanks for your help Angelo ---- 28-01-03 13.11 ---- Envoyé à ------------------------------------ -> [EMAIL PROTECTED] ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. [EMAIL PROTECTED] ******************************************************************* --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> **************************************************************************** This footnote confirms that this email message has been checked for the presence of computer viruses. ---- 31-01-03 09.39 ---- Envoyé à ------------------------------------- -> [EMAIL PROTECTED] ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. [EMAIL PROTECTED] ******************************************************************* --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>