public String encode(final String pString,final String charset) throws EncoderException {
  if (pString == null) {
    return null;
  }
  try {
    return encodeText(pString,charset);
  }
 catch (  UnsupportedEncodingException e) {
    throw new EncoderException(e.getMessage());
  }
}

public String encode ( final String pString , final String charset ) throws EncoderException { if ( pString == null ) { return null ; } try { return encodeText ( pString , charset ) ; } catch ( UnsupportedEncodingException e ) { throw new EncoderException ( e . getMessage ( ) ) ; } }
encodes a string into its quoted - printable form using the specified charset . unsafe characters are escaped .
