At 1999-11-03 21:18, Ben Yenko-Martinka wrote:
>I want the Unicode character to generate the string "\unnnn".
Somethig like this
private static final String hex="0123456789ABCDEF";
public String hexRep(char c)
return "\\u"+hex.charAt(c >>> 12)+
hex.charAt((c >>> 8) & 0xF)+
hex.charAt((c >>> 4) & 0xF)+
hex.charAt(c & 0xF);
...? This is off the top of my head, so it may be buggy...
-- Ashley Yakeley, Seattle WA Almost empty page: <http://semantic.org/>
This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:54 EDT