I have been trying to get a handle on a good code that will provide Javascript for converting IMAP UTF7 mailboxes to JS to UTF-16 string. There seems to be no such work done. Anyone of you built one of these or have one available to share? I am happy to build one but didn't want to if there is someone who has it already.
As I look at the specs it looks like string between '&' and '-' is first decoded with base64 and then decoded as UTF-16 Big Endian, and the reverse process for encoding non-ascii text into UTF-16 portions and then base64. The base64 +/ is represented as +, for file safe operations instead of +_ in other cases.
Let me know if anyone has a solution and I will happy to use it or write one and put it in Github!
Thanks
Vijay
I think I found a simple enough solution to this, as no one responded. Hopefully somebody finds this little script helpful for converting UTF7