It's not a secret anymore!*
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
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: 11479
    
  16

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: 3649
    
  17

You can use an InputStreamReader, and specify the charset you want to use. For instance, you could use
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding unicode