Questions tagged [utf-7]

Obsolete 7-bit Unicode character encoding

UTF-7 is an obsolete transformation format that uses only ASCII characters. It was intended for use with MIME, but is no longer needed with 8-bit-clean channels. Due to serious disadvantages, it was never standardized.

22 questions
1
vote
1 answer

PHP, IMAP and Outlook 2010 - folder names encoding is different?

Im developing e-mail client in php (with symfony2) and i have problem with folders with non-ascii characters in name. Folder created in php app is visible in same app correctly. Same in Outlook, created in outlook looks good in outlook. In other…
WombaT
  • 790
  • 1
  • 13
  • 27
0
votes
1 answer

Escaped characters (of form &AOk- for «é») in IMAP4 list response, using IMAP4_SSL in Python

I am using Python's imaplib module, specifically the IMAP4_SSL class to get emails from a server. When I download messages, non-unicode characters are usually escaped as quoted printable escape codes for which I use the quopri module. When I use the…
Émile Jetzer
  • 222
  • 3
  • 8
0
votes
1 answer

C++ imap-utf7 implementation in gmail

I am trying to decode what texts GMails sends, which should be utf7-imap (actually, if I am not mistaking, utf8 encoded inside utf7?) I have read: https://en.wikipedia.org/wiki/UTF-7 I am using: https://github.com/skeeto/utf-7 to parse the (for…
elcuco
  • 8,948
  • 9
  • 47
  • 69
0
votes
1 answer

IMAP UTF-7 conversion with native Javascript

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…
Vijay
  • 157
  • 1
  • 9
0
votes
3 answers

Encoding.UTF7.GetBytes does not reverse Encoding.UTF7.GetString()

I guess I'm missing something fundamental but I'm really confused by this one and searching has failed to find me anything. I have the following... byte[] bytes1; string string1; byte[] bytes2; Then I do the following bytes1 = { 64, 55, 121, 54,…
RosieC
  • 649
  • 2
  • 11
  • 27
0
votes
2 answers

Isn't UTF-7 possible if htmlspecialchars charset not set, despite the HTTP header charset?

I want to double check this and believe this will be helpful for others. If someone uses htmlspecialchars($var) in their code and are running a PHP version prior to 5.4, then they're open to utf-7 XSS. That's a given. Am I correct in assuming that…
0
votes
0 answers

Using correct encoding when reading from TCP/Port

I'm reading a byte stream (byte[]) from a TCP/Port, and converting a subsection of the recieved array into a char[] Assume that I am not familiar with the characteristics of the port, nor the environment on the other side of this port. All I know is…
James Wiseman
  • 29,946
  • 17
  • 95
  • 158
1
2