public static byte[] chars2utf(char[] src,int sindex,int len){
  byte[] dst=new byte[len * 3];
  int len1=chars2utf(src,sindex,dst,0,len);
  byte[] result=new byte[len1];
  System.arraycopy(dst,0,result,0,len1);
  return result;
}

public static byte [ ] chars2utf ( char [ ] src , int sindex , int len ) { byte [ ] dst = new byte [ len * 3 ] ; int len1 = chars2utf ( src , sindex , dst , 0 , len ) ; byte [ ] result = new byte [ len1 ] ; System . arraycopy ( dst , 0 , result , 0 , len1 ) ; return result ; }
return characters as an array of bytes in utf8 representation .
