File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Need Unicode convertor software Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need Unicode convertor software" Watch "Need Unicode convertor software" New topic
Author

Need Unicode convertor software

Balasubramanian Chandrasekaran
Ranch Hand

Joined: Nov 28, 2007
Posts: 215

I am in need of a unicode convertor which can give unicode values in the form \u####.

Anyone knows about this.
Thanks in advance,expecting your reply
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
What should the output of the conversion be?


Ping & DNS - updated with new look and Ping home screen widget
Balasubramanian Chandrasekaran
Ranch Hand

Joined: Nov 28, 2007
Posts: 215

Originally posted by Ulf Dittmer:
What should the output of the conversion be?


My requirement is that, i need to build a multilingual application which supports chinese language also.As i don't know chinese

I want a software which just converts my english text to chinese and gives me back those chinese characters unicode value.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
English text generally comes in US-ASCII encoding (or maybe ISO-8859 if it contains some special characters). Since those are part of Unicode, there isn't anything you need to do when including them with Chinese Unicode characters.

Or are you talking about text translation? That would of course be a whole different issue, not easily solved.
Balasubramanian Chandrasekaran
Ranch Hand

Joined: Nov 28, 2007
Posts: 215

Originally posted by Ulf Dittmer:
English text generally comes in US-ASCII encoding (or maybe ISO-8859 if it contains some special characters). Since those are part of Unicode, there isn't anything you need to do when including them with Chinese Unicode characters.

Or are you talking about text translation? That would of course be a whole different issue, not easily solved.


Yes i am talking about text translation only

Is there any useful tool for this specific purpose.
Mark Newton
Ranch Hand

Joined: Jan 31, 2006
Posts: 129
OK - to be absolutely clear - you have some English text, let's say the days of the week:

Monday
Tuesday
Wednesday
Thursday
Friday

and you want to translate them into Chinese:

周一
周二
周三
周四
周五

and then get the unicode values of those:

\ufffd\uff7f\u873b\uff68\u8373\ufffd
\u873b\uff68\u83a0\ufffd
\u873b\uff68\u8373\ufffd
\u873b\uff68\u8757\ufffd
\u873b\uff68\u83a0\ufffd

(I don't speak Chinese, so forgive me if the above is wrong, or offensive)

What I did was translate the English in Google Translate - you'll probably need to find a better way of doing the translations, if you have a lot of words, or sentences.

Then, I saved the Chinese characters in a UTF-8 friendly text document (Notepad), and ran that through the Java 'native2ascii' tool, which you'll find in the bin folder of your JDK installation:

The above takes the original characters from foo.txt, replaces them with the unicode equivalents, and saves those in foo2.txt.

I believe you can reverse it as well (a /reverse flag, I think).

Is that helpful?

Dave.
Balasubramanian Chandrasekaran
Ranch Hand

Joined: Nov 28, 2007
Posts: 215

Hi David,

Thanks man.I will try and let you know


Ya it worked
[ February 01, 2008: Message edited by: Balasubramanian Chandrasekaran ]
 
Don't get me started about those stupid light bulbs.
 
subject: Need Unicode convertor software
 
Similar Threads
Request object in convertor class
case convertor
using convertor in jsf
any hints for creating &/or using existing UNICODE convertor/processor?
Currency Convertor