Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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: 11150
    
  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: 3573
    
  14

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
 
Similar Threads
Need a help for unicode
What is this class for Character.UnicodeBlock is all about?
Conversion
Multilangual PDF Creation(in all indian languages)
unicode font