aspose file tools*
The moose likes Struts and the fly likes Struts Internatinoalization with multi language support Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Internatinoalization with multi language support " Watch "Struts Internatinoalization with multi language support " New topic
Author

Struts Internatinoalization with multi language support

soroush
Greenhorn

Joined: Sep 15, 2008
Posts: 13
hi everyBody,
I need to implement Internationalizing feature of struts..i already implement sample file with ApplicationResources file with few key value pair entries..and i successfully called those keys to my jsp page ..
myproblem is in using i18n in my project(for persian/farsi language l10n).
I get "?" marks instead of UTF-8 characters in browser.
APIs and tools which I use are:jsp,tiles, struts
,struts message resourses,native2as cii,UTF-8 and also I use windows XP.
any assitance would be appriciated in advance.

Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684


Hi,

Add this linr to your Jsp;

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

If still not working please post your code.


Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
soroush
Greenhorn

Joined: Sep 15, 2008
Posts: 13
thanks for your attention

the probel included unicode supprting in persian is solved
Nyanas Kandhan
Ranch Hand

Joined: Jan 27, 2009
Posts: 35
For an example on Struts internationalization you can refer here.

Struts I18N using locale.
Struts Internationalization using browser settings.

regards
Struts Developer


regards,
Nyanaskandhan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts Internatinoalization with multi language support
 
Similar Threads
Internationlizing JSPs
internalisation to hindi language not getting proper display...
Turkish Character Problem in Properties Files
can i send character encoding with the url
UTF-8 and Tomcat