Last Updated March 19, 2008
 

 


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