Lines Matching refs:charset

346      * with <strong>"text/plain; charset=foobar"</strong>. <p>
593 * be encoded using the platform's default charset. If the
597 * Note that if the charset encoding process fails, a
607 * in the exception chain if the charset
620 * be encoded using the specified charset. If the description
624 * Note that if the charset encoding process fails, a
630 * @param charset Charset for encoding
635 * in the exception chain if the charset
638 public void setDescription(String description, String charset)
647 MimeUtility.encodeText(description, charset, null)));
880 * using the platform's default charset. The charset is also
881 * used to set the "charset" parameter. <p>
885 * to scan all the characters to determine what charset to
887 * If the charset is already known, use the
888 * setText() version that takes the charset parameter.
890 * @see #setText(String text, String charset)
899 * charset. The given Unicode string will be charset-encoded
900 * using the specified charset. The charset is also used to set
901 * the "charset" parameter.
903 public void setText(String text, String charset) {
904 if (charset == null) {
906 charset = MimeUtility.getDefaultMIMECharset();
908 charset = "us-ascii";
910 setContent(text, "text/plain; charset=" +
911 MimeUtility.quote(charset, HeaderTokenizer.MIME));
1104 cType.getParameter("charset") == null) {
1106 * Set a default charset for text parts.
1115 String charset;
1118 charset = "us-ascii";
1120 charset = MimeUtility.getDefaultMIMECharset();
1121 cType.setParameter("charset", charset);