473,395 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Unicode in property file

Hi all

If the unicode (Hindi) labels are placed in the JSP pages itself literaly then they are displayed correctly. But in some forms where Labels are coming from property files, ???? is being displayed in the browser. while in the IDE it is showing Hindi characters. Please help me. I am novice for Java.

Thanx in advance.
Aradhana
Mar 14 '08 #1
7 3430
JosAH
11,448 Expert 8TB
Did you use the syntax \uXXXX where XXXX are the four hexadecimal nibbles of
the Unicode codepoint?

kind regards,

Jos
Mar 14 '08 #2
Yes I tried it and was displaying properly but it's a tedious job to use the corresponing hexadecimal code corresponding to every letter. Please tell about some editor that converts the letter into its hexadecimal code.

Thanx and Regards,
Aradhana
Mar 14 '08 #3
JosAH
11,448 Expert 8TB
Yes I tried it and was displaying properly but it's a tedious job to use the corresponing hexadecimal code corresponding to every letter. Please tell about some editor that converts the letter into its hexadecimal code.

Thanx and Regards,
Aradhana
So basically your problem is solved; I don't know of any editor that can do this
but it's quite easy to write a little program that converts any character code xxxx
for xxxx not in the range [32, 127] to convert it to \uxxxx

kind regards,

Jos
Mar 14 '08 #4
BigDaddyLH
1,216 Expert 1GB
So basically your problem is solved; I don't know of any editor that can do this
but it's quite easy to write a little program that converts any character code xxxx
for xxxx not in the range [32, 127] to convert it to \uxxxx

kind regards,

Jos
The JDK comes with a tool to do exactly this: native2ascii.exe

http://java.sun.com/developer/JDCTec.../tt0506.html#1
Mar 14 '08 #5
JosAH
11,448 Expert 8TB
The JDK comes with a tool to do exactly this: native2ascii.exe

http://java.sun.com/developer/JDCTec.../tt0506.html#1
Well look at that: I even never *noticed* that little tool; cute; thanks for mentioning it.

kind regards,

Jos (<--- learned something new again)
Mar 14 '08 #6
Well look at that: I even never *noticed* that little tool; cute; thanks for mentioning it.

kind regards,

Jos (<--- learned something new again)
Actually I am using struts on RHEL4.0 and I have to display the lables in Hindi. I have created a property file containing Hindi Lables, added it in struts_config.xml. But when I went to set the default language for webpages in Mozilla firefox as Hindi. It is not showing Hindi in the list of Languages while Marathi and Sanskrit are being shown. What to do to bring Hindi in the list of Languages. Please help .
Thanx n regards,
Aradhana
Mar 17 '08 #7
JosAH
11,448 Expert 8TB
Actually I am using struts on RHEL4.0 and I have to display the lables in Hindi. I have created a property file containing Hindi Lables, added it in struts_config.xml. But when I went to set the default language for webpages in Mozilla firefox as Hindi. It is not showing Hindi in the list of Languages while Marathi and Sanskrit are being shown. What to do to bring Hindi in the list of Languages. Please help .
Thanx n regards,
Aradhana
I know nothing about the Hindi language but this this help?
http://developers.sun.com/dev/gadc/t...thai_hindi.pdf.

kind regards,

Jos
Mar 17 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: ..... | last post by:
I have an established program that I am changing to allow users to select one of eight languages and have all the label captions change accordingly. I have no problems with English, French, Dutch,...
32
by: Wolfgang Draxinger | last post by:
I understand that it is perfectly possible to store UTF-8 strings in a std::string, however doing so can cause some implicaions. E.g. you can't count the amount of characters by length() | size()....
5
by: Bill Grigg | last post by:
I am attempting to set the UnicodeCompression property via code. The following line "appears" to work: tdf.Fields("State").Properties("UnicodeCompression").Value = True I can see the boolean...
4
by: Julia | last post by:
Hi, I need to convert unicode string to ansi string Thanks in adavance.
14
by: Nick Z. | last post by:
I have a file that I want to read a UTF-16 unicode string from. What is the easiest way to accomplish that? Thanks in advance, Nick Z.
40
by: apprentice | last post by:
Hello, I'm writing an class library that I imagine people from different countries might be interested in using, so I'm considering what needs to be provided to support foreign languages,...
5
by: Holger Joukl | last post by:
Hi there, I consider the behaviour of unicode() inconvenient wrt to conversion of non-string arguments. While you can do: u'17.3' you cannot do:
4
by: candide_sh | last post by:
Hello, I created a script with database publishing wizard to convert a SS2005 db into a SS2k db. The script has schema and data and looks very good. When I try to start the created script in...
5
by: Xah Lee | last post by:
If i have a nested list, where the atoms are unicode strings, e.g. # -*- coding: utf-8 -*- ttt=, ,...] print ttt how can i print it without getting the u'\u1234' notation? i.e. i want it...
8
by: Yves Dorfsman | last post by:
Can you put UTF-8 characters in a dbhash in python 2.5 ? It fails when I try: #!/bin/env python # -*- coding: utf-8 -*- import dbhash db = dbhash.open('dbfile.db', 'w') db = u'☺'
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.