We have an HTML emailer system that lets the administrator create and send emails based on a template.
At edit time, certain parts of the template are replaced with simple text-area and text field editors, this enables the admin to create an email based on the template and store it.
When the email is sent out, the editable parts of the template are rendered with the content.
The problem is this:
Pasting from MS Word often inserts MS's own quotes and strange characters.
This was not a problem on our local development system - both the browser preview and received multipart Mime mail were fine.
On the live system, it screws up and we get bizarre character replacements.
I have written a simple function to convert the MS quotes to html entities, etc. For the rendering side, leaving the input data alone.
This does not seem to have any effect on the rendered HTML - it still comes up with strange replacements.
The differences I can see from the 2 systems are that magic_quotes_gpc is on for the live system, so I added a work-around to deal with this. The other main difference is that the test system is using PHP 4.3.8 and live PHP 4.3.11
Can anyone point me towards the things I should be looking at?