i believe you will need to implement a character set which implements DBCS at the server which hosts your struts webapp and delivers (Unicode) using DBCS as a response. Once you are able to input the characters from the selected character-set and language-locale and display the characters from the selected character-set and language-locale then you will be able to implement the UTF-8 character-set in your web applications stack. UTF-8 is a special character designed to show every character from every language as 'code-points' the definition which follows:
"UTF-8 is therefore a multi-byte variable-width encoding. Multi-byte because a single character like Я takes more than one byte to specify it. Variable-width because some characters like H take only 1 byte and some up to 4." http://coding.smashingmagazine.com/2012/06/06/all-about-unicode-utf8-character-sets/ The onus of ensuring all DBCS input and display of DBCS characters will fall on your shoulders .. Unicode entered data must also be stored in your Database as UTF-8 character-set http://docs.moodle.org/23/en/Converting_your_MySQL_database_to_UTF8 HTH Martin.. ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Tue, 31 Jul 2012 09:31:14 +0400 > Subject: Struts 1 : Arabic Characters Issue > From: maqs.develo...@gmail.com > To: user@struts.apache.org > > Dear All, > > I have developed an application using Struts 1.3. and running on IBM WAS 7. > Application supports English and Arabic languages. English locale is > working fine but while in Arabic locale message labels (from properties > resource bundle) display question marks "????" instead of the Arabic > characters. It does not happen always so I am unable to reproduce the > error. In case if this happens after refreshing the page, labels display > proper message. > > I am using following code to set Arabic Locale in application; > > *request.getSession().setAttribute(Globals.LOCALE_KEY, new Locale("ar", > "AE"));* > > To ensure character encoding to be UTF-8, I set it using below code. > > <%@page language="java" contentType="text/html; charset=UTF-8" > pageEncoding="UTF-8"%> > <% request.setCharacterEncoding("UTF-8");%> > > > Does any one has idea ????? Please respond me ASAP. > > > Regards, > M. Qadeer Saeed