• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Unicode convertor software

 
Balasubramanian Chandrasekaran
Ranch Hand
Posts: 215
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What should the output of the conversion be?
 
Balasubramanian Chandrasekaran
Ranch Hand
Posts: 215
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 215
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 215
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

Thanks man.I will try and let you know


Ya it worked
[ February 01, 2008: Message edited by: Balasubramanian Chandrasekaran ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic