This version of www.jasonlam604.com is deprecated.
If you are not redirected to the new web site in 3 seconds, please click on the following link
http://www.jasonlam604.com/v2/index.php
 

 


Sring to Unicode
by Jason Lam

/**
* Converts a unicode string code to the unicode symbol
*
* @param String value representating a unicode code ie: 0669
* @return unicode symbol as a String
*/
private String convertStrToUnicode(String value) {
    short valueAsShort = Short.parseShort(value.trim(),16);
    return String.valueOf((char)valueAsShort);
}

 

| Home | Tutorials | Tips / Hints | Books | Links |
| Resume | Portfolio | Services | Contact |

The contents of this webpage are copyright © 2003 - 2006
Jason Lam All Rights Reserved