Java - General » Spring » How to write Messages Property file for Hindi Language
hi Manikanta,
using following bean it is possible
class="org.springframework.context.support.ResourceBundleMessageSource">
but we have to mention locale for hindi which is hi_IN.
i just want to know can i paste hindi words in property file which is UTF-8 type.
if you know more about internationalisation then please send me doc or code.
Thanks
1290 Views
3 Replies
How to write Messages Property file for Hindi Language
Posted 02-04-2009Reply
I want to display label's in Hindi language in JSP page. But in messages.proprties file not showing Hindi words directly paste in file.
Can we put Hindi words in messages.properties file rather than unicode.
No gangadhar, it is littke bit costly process for ... See Manikanta's complete reply
hi Manikanta,
using following bean it is possible
but we have to mention locale for hindi which is hi_IN.
i just want to know can i paste hindi words in property file which is UTF-8 type.
if you know more about internationalisation then please send me doc or code.
Thanks
Yes we can put hindi charaters in text files unless it is supported. UTF-8 encoding can do it. But when see same thing on web browser it may not show you the real content. Because of its default character encoding (ASCII for some browser), you need to change it to see the right result.
Put this inside head part of html page...
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Regards
Ravindra
Put this inside head part of html page...
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Regards
Ravindra











