Hi, I'm a bit overwhelmed by the info here... just to clarify a couple of things:
>> 4) I make sure that this gets called somewhere on the request object: >> req.setCharacterEncoding("UTF-8");// or UTF8, can't remember This would be the same as <%@ page contentType="text/html; charset=UTF-8"%>, no? Can I call setCharacterEncoding(str) over and over with different encoding strings? >> 5) I make sure that Velocity gets initialized with the right encoding: >> Velocity.getTemplate(vm.getName(), "UTF8").merge(context, writer); Hmm... I'm not using Velocity... does that mean this doesn't apply to me?? And btw, what was the problem you tried to solve? I wrote a test page just now, and it looks like this: ============================================= <%@ page contentType="text/html; charset=ISO-8859-1"%> <%@ taglib uri="webwork" prefix="webwork" %> <%@ taglib uri="webwork" prefix="ui" %> <html> <head><title>Hello</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> This is a test for russian.<br><br> <webwork:i18n name="'community.form.Initializer'"> <webwork:text name="'community.text.welcome1'" /><br> <webwork:text name="'community.text.welcome2'" /><br> <webwork:text name="'community.text.welcome3'" /><br> </webwork:i18n> </body> </html> ============================================= where community.text.welcome1 is Russian, community.text.welcome2 is Hebrew, and community.text.welcome3 is Japanese. When I bring this page up in IE, I get this junk in the browser. I had to manually set the encoding to UTF-8 in order to see them displayed correctly. HOWEVER, if I change the charset in <%@ page contentType="text/html; charset=UTF-8"%> I get junk that simply cannot be displayed correctly. Does this mean I have UTF-8 characters being encoded in ISO-8859-1, in essense "double-encoding"?? And how can I avoid this?? Thanks again, James -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of James Pan Sent: Wednesday, October 15, 2003 7:58 PM To: [EMAIL PROTECTED] Subject: [OS-webwork] Newbie: internationalization for Russian Hi, I'm trying to create a page that can be in multiple languages, namely English, Dutch, Russian, and Japanese. The resource bundles for them are all in the correct languages, and since I'm working on Windows, I saved them in Notepad as unicode. MyAction.properties MyAction_ru.properties MyAction_jp.properties MyAction_nl.properties Now, English and Dutch display fine, but whenever I switch to Russian, I have to manually change the browser's encoding to "UTF-8" (and even this doesn't display my russian text correctly, coming up with squares between Russian characters). I ran into this problem before with Japanese, and the solution was to put <%@ page contentType="text/html; charset=Shift-JIS"%> at the first line of my JSP page. Now, since this application is to be in different languages all the time, I can't do this. I instead need something like: <%@ page contentType="text/html; charset=<webwork:text name="'current.encoding'" />"%> Which obviously doesn't work. And I've been banging my head for almost two days now for this encoding thing... does anyone have any suggestions?? Thank you very much! James ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork