utf-7轉碼
List: imap I tried the code you referenced (the exact program and compilation script are in attachments), but it failed. The program takes input as modified UTF-7, uses MailboxToURL routine to change it to UTF-8 and then uses the URLtoMailbox routine to change it to UTF-7 again: int main(int argc, char* argv[]){ char out[OUTSIZE]; char in[OUTSIZE]; strcpy(in,argv[1]); printf("in: %s\n",in); MailboxToURL(out,in); printf("out: %s\n",out); URLtoMailbox(in,out); printf("in: %s\n",in); } As an input I gave it the following UTF-7 code: a&AQUBBA-e&AFC-f which is the code produced by Microsoft Outlook and contains bunch of Polish letters. The output of the program is the following: [[email protected]