• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Need Unicode convertor software

 
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What should the output of the conversion be?
 
Balasubramanian Chandrasekaran
Ranch Hand
Posts: 215
Firefox Browser VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Barry's not gonna like this. Barry's not gonna like this one bit. What is Barry's deal with tiny ads?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic