Lines Matching refs:charset
105 * @param charset the Java charset to use.
107 * @throws UnsupportedEncodingException if the given Java charset isn't
110 public static String decodeB(String encodedWord, String charset)
113 return new String(decodeBase64(encodedWord), charset);
121 * @param charset the Java charset to use.
123 * @throws UnsupportedEncodingException if the given Java charset isn't
126 public static String decodeQ(String encodedWord, String charset)
142 return new String(decodeBaseQuotedPrintable(sb.toString()), charset);
148 * =?charset?enc?Encoded word?= where enc is either 'Q' or 'q' for
231 String charset = CharsetUtil.toJavaCharset(mimeCharset);
232 if (charset == null) {
234 log.warn("MIME charset '" + mimeCharset + "' in encoded word '"
236 + "corresponding Java charset");
239 } else if (!CharsetUtil.isDecodingSupported(charset)) {
241 log.warn("Current JDK doesn't support decoding of charset '"
242 + charset + "' (MIME charset '" + mimeCharset
259 return DecoderUtil.decodeQ(encodedText, charset);
261 return DecoderUtil.decodeB(encodedText, charset);