wzy sohu wrote: > hi: > I have read your answer about a mailbox name which mixes English > ,Japanese and Chinese . > but how can i decode the BASE64 to Chinese . i have used your > function base64decode() but the answer is not correct, for example i > decode "g0l6Pw" i got "�Iz" but the right answer is "草稿"(means > "draft"), and i use the function base64encode() to encode the word "草稿 > " the answer is "st245Q==". > my client is outlook. > thank you.
I suppose you were talking about imap folders? If so, the imap specification dictates that the imap server would convert all non-ascii characters into "modified utf-7". I would suggest looking into: imap_utf7_decode() imap_utf7_encode() functions in PHP for further information. Reg.