Re: MimeUtility.java handling of default charset

chris burdess <[email protected]> Wed, 5 Nov 2003 14:42:13 +0000
Newsgroups gmane.comp.java.classpath.extensions.discuss
Message-ID <[email protected]>
Øyvind Harboe wrote:
> I'm on a quest to compile a native version(using GCJ) of a program that
> can send emails with UTF8 encoded subject/body.
> 
> The function below in MimeUtility.java can return a null pointer, which
> ultimately causes a nullpointer exception.
> 
> public static String javaCharset(String charset)
>   {
>     if (mimeCharsets==null || charset==null)
>       return charset;
>     String jc = (String)mimeCharsets.get(charset.toLowerCase());
>     return (jc!=null) ? jc : charset;
>   }

we're currently missing javamail.charset.map 

i'll look into writing one asap.
-- 
chris burdess