
Manuel Lemos - 2012-05-20 21:56:46 -
In reply to message 1 from James Henderson
The class does not alter the encoding of any message data.
If you receive messages with UTF-16 encoded text, the class just return the originally encoded strings. It is up to your application to use or display that text somewhere converting the encoding or not as you feel it is appropriate.
This means if you want to display the message UTF-16 encoded text in a Web page, you may need to send proper page content-type headers or add equivalent <meta> tags.
If the page needs to use the some other encoding, say UTF-8, you need to convert the encoding of the parsed message text yourself with some PHP text encoding conversion functions.