This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Regarding unicode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Regarding unicode" Watch "Regarding unicode" New topic
Author

Regarding unicode

Korada Rajshekar
Greenhorn

Joined: Jul 21, 2011
Posts: 3
Can you help me out with a sample code to get the Unicode characters form any type of input given in java also mention any help material that can be useful while developing this task..
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11814
    
  18

Korada Rajshekar wrote:Can you help me out with a sample code to get the Unicode characters form any type of input given in java also mention any help material that can be useful while developing this task..

We can HELP you, but nobody is going to PROVIDE it for you.

What do you mean by "any type of input"? does that mean any language (English, Korean, Ancient Greek) or do you mean keyboard vs. scanner vs. touch screen monitor?

Show us what you have so far...


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3892
    
  18

You can use an InputStreamReader, and specify the charset you want to use. For instance, you could use


The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding unicode
 
It's not a secret anymore!