I am trying to read emails through Exchange Server 2003 through a URL in PHP. Files that have characters not allowed in filenames convert them into some form of Unicode. For e.g / is converted to xF8FF and \ is converted to xF8FE
How can I use PHP to convert these characters into the correct encoding? I know I could take a long way around and use str_replace, but I know that other characters such as : ; * < > will have the same problem. Does PHP support this encoding natively?
Thanks
Starting from the source code of the Ximian Connector for Microsoft Exchange (written in the C programming language), I’ve made up this sample of PHP code:
Here is the output:
Unfortunately I don’t have an Exchange Server, so I can’t tell if it really works, however I hope it can be a good starting point.