http://www.anassina.com/struts/i18n/i18n.html
Yann Lebreton wrote:
did you set the character encoding on the request before getting the data to the db ? if you don't the input may be interpreted using the default JVM's encoding.
-----Original Message----- From: José Gustavo Zagato [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 9:53 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Character Encoding
Hey Yann Lebreton !
I have the same doubt as you, but for time constraints we decide to use the encode at the JSP.
I have some questions about Internationalizations and maybe you / someone else could give me a more clear perspective on this subject...
I' am developing a site wich must run under several languages, including Chinese, Thay, and many many others. I build several small applications to prove that the location / I18N works fine on struts for showing messages at the HTML. But My current concern is those input text fields... How Can I handle the user Input ? I will save all entered data in a Oracle database (already prepared to work with Unicode), but during testing every time that I save some data in Unicode format the Database don't understand it.
Does anyone here have any hint on this stuff ?
Cheers !
José Gustavo Zagato Rosa System Analyst - Atos Origin [EMAIL PROTECTED]
-----Original Message-----
From: Yann Lebreton [mailto:[EMAIL PROTECTED] Sent: sexta-feira, 5 de setembro de 2003 13:46
To: [EMAIL PROTECTED]
Subject: [OT] Character Encoding
As part of localizing a site, I'm trying to set the content type of the
response. Now I now I can do this within the JSP (<%@ page
contentType="text/html; charset=UTF-8" %> ). But I'd rather do this globally. I found out that you can set this as a
parameter of the controller in struts. This would work fine if the JSP
compiler wasn't also setting the content type automatically.
So do someone know a container setting to do this ? Is there something like a "pre-compiler" for JSP, that would change/add code to each JSP before giving it to the JSP compiler ?
Thanks, Yann
--------------------------------------------------------------------- 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]
-- Jason Lea
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]