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?

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Comments