public void copyString(String encoding,String s) throws UnsupportedEncodingException {
  super.setContentEncoding(encoding);
  content=s.getBytes(encoding);
}

public void copyString ( String encoding , String s ) throws UnsupportedEncodingException { super . setContentEncoding ( encoding ) ; content = s . getBytes ( encoding ) ; }
set the content by converting characters to into bytes using the specified encoding .
