troubleshooting Question

PHP and MS Word characters

Avatar of uknetweb
uknetweb asked on
PHP
3 Comments1 Solution281 ViewsLast Modified:
Hi,

  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?

  Thanks

  Glen
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros