UTF-8 wont handle dbcs or tbcs languages
i would suggest change all encodings (parameter and file,input and output) to 
UTF-16

 

<?xml version="1.0" encoding="UTF-8" ?>

change all XML declaration tags for all XML files to UTF-16 e.g.

<?xml version="1.0" encoding="UTF-16" ?>

 

freemarker and velocity have their language specific scripts which you will 
need to modify or insert located at

/WEB-INF/velocity/tiles-defs_ja_JA.xml

/WEB-INF/freemarker/tiles-defs_ja_JA.xml

 

if you use the embeddedjsp plugin you will need to provide 
LocalStrings_ja.properties in resources folder

\plugins\embeddedjsp\src\main\resources\org\apache\struts2\jasper\resources\LocalStrings_ja.properties

 

if you are using portlets in portlet.xml change 
<supported-locale>en</supported-locale> to 
<supported-locale>ja</supported-locale>

 

set the locale for your sessions to ja_JA via i18n-interceptor

https://cwiki.apache.org/WW/i18n-interceptor.html


Martin Gainty 
______________________________________________ 
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, 13 Jul 2010 13:04:56 +0530
> Subject: how can i get the validation in japanese
> From: ssal...@gmail.com
> To: user@struts.apache.org
> 
> Hi all
> I'm facing a problem ,
> 
> in a sample there is a username and password there two has to show in
> japanese if the user didnt enter the values the validation also has also be
> shown in japanese i had changed the page encoding ,changed to validation.xml
> to property file there also on saving eclise is shwing cant encode to utf-8
> some ISO ........... is enabled so i change the language support of my
> sys,in eclipse also Window----->Prefences---->General------->Workspace to
> UTF-8 but on deplaying the validation is showing in ???????????? why what is
> the problem and how can i get it correct
> Thanks in advance
                                          
_________________________________________________________________
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5

Reply via email to