public static void appendHexJavaScriptRepresentation(StringBuilder sb,char c){
  sb.append("\\u");
  String val=Integer.toHexString(c);
  for (int j=val.length(); j < 4; j++) {
    sb.append('0');
  }
  sb.append(val);
}

public static void appendHexJavaScriptRepresentation ( StringBuilder sb , char c ) { sb . append ( "\\u" ) ; String val = Integer . toHexString ( c ) ; for ( int j = val . length ( ) ; j < 4 ; j ++ ) { sb . append ( '0' ) ; } sb . append ( val ) ; }
returns a javascript representation of the character in a hex escaped format . although this is a rather specific method , it is made public because it is also used by the jscompiler .
