RE: UTF-8 problems
Hi In Java 1.3, the default encoding is set to ISO-8859-1 which includes all the Country(German) special characters In Java 1.4, the default encoding is set to ASCII which converts all German special characters to '?' The fix for this problem was just setting an environment variable CATALINA_OPTS=-Dfile.encoding=ISO-8859-1 -Original Message- From: Tang Guangyu [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 5:30 AM To: Tomcat Users List Subject: Re: UTF-8 problems This problem was caused by your browser. The browser will use its own encoding to encode form values post back. You need set proper encoding to request - request.setEncoding(BROWSER_ENCODING). Or you can write a filter to simplify your work. - Original Message - From: Nathan Coast [EMAIL PROTECTED] To: tomcat user [EMAIL PROTECTED] Sent: Sunday, August 03, 2003 9:11 PM Subject: UTF-8 problems Hi, I have an text fields in a form that will contain UTF-8 characters e.g. ''. I can retrieve utf-8 chars from the db and display them correctly in jsps via tomcat. The only problem comes with submiting forms to tomcat. request.getParameter() returns the incorrect value for the char e.g. '' instead of ''. AFAIK the default encoding of java is UTF-8 so I'm not to sure where to look. Anyone have any suggestions as to what I have to do? thanks Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
UTF-8 problems
Hi, I have an text fields in a form that will contain UTF-8 characters e.g. ''. I can retrieve utf-8 chars from the db and display them correctly in jsps via tomcat. The only problem comes with submiting forms to tomcat. request.getParameter() returns the incorrect value for the char e.g. '' instead of ''. AFAIK the default encoding of java is UTF-8 so I'm not to sure where to look. Anyone have any suggestions as to what I have to do? thanks Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UTF-8 problems
This problem was caused by your browser. The browser will use its own encoding to encode form values post back. You need set proper encoding to request - request.setEncoding(BROWSER_ENCODING). Or you can write a filter to simplify your work. - Original Message - From: Nathan Coast [EMAIL PROTECTED] To: tomcat user [EMAIL PROTECTED] Sent: Sunday, August 03, 2003 9:11 PM Subject: UTF-8 problems Hi, I have an text fields in a form that will contain UTF-8 characters e.g. ''. I can retrieve utf-8 chars from the db and display them correctly in jsps via tomcat. The only problem comes with submiting forms to tomcat. request.getParameter() returns the incorrect value for the char e.g. '' instead of ''. AFAIK the default encoding of java is UTF-8 so I'm not to sure where to look. Anyone have any suggestions as to what I have to do? thanks Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]