struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Muthu Velappan" <muthu.velap...@aspiresys.com>
Subject RE: Localization in struts 2
Date Thu, 18 Jun 2009 07:18:05 GMT
Try this...

Take a copy of ur current properties file and name it as hinditext.txt(save
it in UTF-8 format)

Now open command prompt and go to your <JAVA_HOME>/bin folder and run this
command 

native2ascii -encoding UTF-8 <full path of hinditext.txt file>
<app_hi.properties>

Now rename this app_hi.properties file with respect to ur application
properties file and copy to the required place. Restart the server you
should be able to see the hindi text properly in browser.

Hope this solves your problem.

Thanks,
Muthu

-----Original Message-----
From: Johnson nickel [mailto:saravanan@elogic.co.in] 
Sent: Thursday, June 18, 2009 12:28 PM
To: user@struts.apache.org
Subject: Re: Localization in struts 2


I have tried to copy the properties files text and opening in notepad
while saving i had selected the encoding type as UTF-8. But still i'm not 
able to see the hindi text in browser.

And in my jsp i have added ,
 <%@ page language="java" pageEncoding="utf-8"
contentType="text/html;charset=utf-8"%> 
<meta equiv="Content-Type" content="text/html; charset=UTF-8">



Girish Naik wrote:
> 
> Is the Hindi text specified in the file in UTF8 format? ie /u0092 etc.
> 
> 
> 
> Regards,
> ---------------------------------------------------------
> Girish Naik
> Mobile:-+91-09740091638
> girish.naik@gmail.com
> 
> Mitch
> Hedberg<http://www.brainyquote.com/quotes/authors/m/mitch_hedberg.html>
> - "I drank some boiling water because I wanted to whistle."
> 
> On Thu, Jun 18, 2009 at 10:45 AM, Johnson nickel
> <saravanan@elogic.co.in>wrote:
> 
>>
>> Hi all,
>>
>>        I have tried the Struts2i18n sample project it's working fine. But
>> i
>> need to
>> implement local language in the same manner. I have created
>> ResourceBundle_Hi.properties for
>> hindi language. I had specified the hindi text in this file. when i try
>> to
>> execute the application
>> it shows some नाम: or ???. It's not actually taken the proper
>> file.Give me a suggestions for this
>> issue
>> --
>> View this message in context:
>> http://www.nabble.com/Localization-in-struts-2-tp24086510p24086510.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 

-- 
View this message in context:
http://www.nabble.com/Localization-in-struts-2-tp24086510p24087439.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org







---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message