Unsupported Locale Error w/ CFPOP

So, I've had two clients run into this bug now. When doing a getAll with CFPOP, if an email is in an unsupported locale, you get:

An exception occurred while retrieving mail. The cause of this exception was: java.io.UnsupportedEncodingException: unicode-1-1-utf-7

Some research on the ColdFusion Support Forums dug up this thread, which then pointed to a thread at cf-talk that said this was a known Java bug.

So, the question is, what is the best way around it? Sure you can wrap your cfpop call with a try/catch statement, but if you are trying to download a bunch of email, it basically means you are screwed. I'm guessing I'm going to have to write code to getAll, and if this error is thrown, revert to getting one message at a time, which will be slow as heck.

Anyone else encounter this?

Archived Comments

Comment 1 by Deb posted on 11/25/2003 at 11:42 PM

BTW, here's the specific Sun bug for the issue: http://developer.java.sun.c... (requires a (free) login to be set up to access).

Comment 2 by Raymond Camden posted on 11/25/2003 at 11:55 PM

Is there any possible temp fix for this in CF? Maybe it should return a blank row for email messages that can't be parsed? I understand this isn't MACR's fault, but it _does_ seem to make getAll useless.

Comment 3 by mark kruger posted on 10/19/2004 at 5:57 PM

Ray,

Hey - did you ever find an acceptable work-around for this bug? The best I can come up with a CFX tag for 45$ (cfx_pop3). I have a customer fairly hot about it. It really affects newsletter type apps where you are trying to handle bounces.

-Mark

Comment 4 by Raymond Camden posted on 10/20/2004 at 9:57 PM

Unfortunately I did not. I'd be willing to bet it gets fixed in Blackstone though.

Comment 5 by Paul Vernon posted on 12/2/2004 at 4:44 AM

To be totally accurate, there is a version of CFX_POP3 for circa $15 that will address the problem too.... the $45 version just has extra features like SSL support and bayesian filters.

Comment 6 by Doug B posted on 6/20/2005 at 10:23 PM

I realize this is an old thread, but I came across it when searching for a solution to this very issue, and figured I would share the fix that I ultimately found:

http://www.freeutils.net/so...

Works like a charm.