allare 0 Report post Posted February 28, 2003 I need to convert between characters of a nepali language and their Unicode values. How should I do this in java? Please help! Quote Share this post Link to post Share on other sites
linuxuser 0 Report post Posted February 28, 2003 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. Quote Share this post Link to post Share on other sites
allare 0 Report post Posted March 4, 2003 thanks rs_1915 for answer. I got it now. Quote Share this post Link to post Share on other sites
kamal 0 Report post Posted March 4, 2003 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 Quote Share this post Link to post Share on other sites