A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Joined: Jul 28, 2006
Aug 21, 2006 06:19:00
I am using Struts 2.0.
I am using i18n in my application. Main purpose of this application is to show data in Chinise Character, which is working fine. But this is not working for Hindi Character (Country = India).
I first persent layout of my application:
My index form contains 3 url, English, Chinese & Hindi.
On clicking English, browser presents data in English, Same for Chinese.
I have used 3 .properties file with same key but different values.
Using Locale object I am setting locale as
country = request.getParameter("country").toString();
String language = request.getParameter("language").toString();
This code is written in ones of the action form. Now ever thing works i.e all characters are displayed but on Hindi characters are not displayed.
Necessary font for Hindi is also installed on Machine.
Can any one sort out this?
Joined: May 05, 2006
Aug 21, 2006 09:55:00
I'm not sure if this will help, but have you ran native2ascii on your app resources file that is giving you trouble?
I'm not an expert on i18n, but it is worth a shot.
native2ascii.exe is part of the jdk.
It is sorta covered in the
JavaRanch Style Guide
subject: Internationalization (i18n)
how to translate form data using i18n
JSTL formating is not working after setting the locale
add HINDI language in firefox
Character set encoding issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014