|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2005-04-06 18:26 UTC] sniper@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 04:00:01 2025 UTC | 
Description: ------------ These functions do not work: /** * Replacement for $this->utf7_encode because it expects the text to be in * ISO-8859-1 format while GO uses UTF-8. * * @access public * @param $text The UTF-8 encoded text to encode in UTF-7 * @return string UTF-7 encoded text */ function utf7_encode($text) { return imap_utf7_encode(utf8_decode($text)); } /** * Replacement for $this->utf7_decode becuase it returns the text in * ISO-8859-1 format while GO uses UTF-8. * * @access public * @param $text The UTF-7 text to encode to UTF-8 * @return string UTF-8 encoded text */ function utf7_decode($text) { return utf8_encode(imap_utf7_decode($text)); } } Reproduce code: --------------- Use these functions and encode UTF-8 strings with characters like ??? etc in it and it will produce garbage. I use these in my mail client and it works but other mail clients do not see the folders correctly. Expected result: ---------------- Other mail clients should see the folder names correctly Actual result: -------------- The folder names have strange characters in other mail clients