Character encoding question

This is a discussion on Character encoding question within the IMAP forums in Other Technologies category; I maintain an application that downloads messages from IMAP servers. I am working with a server now that is giving me a folder name encoded as "Cabinet/test Ordner &AOQA,AD2-" My customer is telling me this is supposed to be "test Ordner äüö" There is another example where "t&APY-st" decodes to "töst". This one I understand - I take the three character sequence between the & and - and base64 decode it, and end up with a single character. All the examples I have seen of this type of encoding use triplets for each character. However I have no idea how ...

Go Back   Application Development Forum > Other Technologies > IMAP

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-21-2008, 01:24 AM
Jeff McKay
Guest
 
Default Character encoding question

I maintain an application that downloads messages from IMAP servers. I am
working
with a server now that is giving me a folder name encoded as

"Cabinet/test Ordner &AOQA,AD2-"

My customer is telling me this is supposed to be "test Ordner äüö"

There is another example where "t&APY-st" decodes to "töst". This one I
understand - I take the three character sequence between the & and -
and base64 decode it, and end up with a single character. All the examples
I have seen of this type of encoding use triplets for each character.
However
I have no idea how to decode the first example above. The first three
characters
do decode to " ä" as expected but everything I try to extract those last two
characters fails. I'm beginning to suspect that the IMAP server is not
correctly
encoding the folder name. Any ideas?

Reply With Quote
  #2  
Old 08-21-2008, 07:43 AM
Timo Sirainen
Guest
 
Default Re: Character encoding question

On Wed, 20 Aug 2008 22:24:16 -0700, Jeff McKay wrote:

> There is another example where "t&APY-st" decodes to "töst". This one I
> understand - I take the three character sequence between the & and - and
> base64 decode it, and end up with a single character. All the examples
> I have seen of this type of encoding use triplets for each character.
> However
> I have no idea how to decode the first example above.


IMAP specifications are a good place to start. Open RFC 3501 and look for
mailbox names / modified UTF-7.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:40 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.