Jump to content
Sign in to follow this  
allare

How do I convert Unicode values to characters?

Recommended Posts

hey allare.............

nepali characters................assuming u are using Devanagari characters ( well u can use others too), Devanagari falls into a range of 0900-097F.

You should be able to use java.lang.Character class...which is derived from java.lang.Object.

and use its method getNumericValue to convert the character to its corresponding unicode numeric value.

method is declared as this.

public static int getNumericValue( char ch);

Returns the Unicode numeric value of the character as a nonnegative integer. If the character does not have a numeric value, then -1 is returned. If the character has a numeric value that cannot be represented as a nonnegative integer (for example, a fractional value), then -2 is returned.

Share this post


Link to post
Share on other sites

very nice question. i like it but have no answer for the question. once one of my friend had asked same question couple years ago. by the way, could we see your out put .

 

thanks

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.