I't the Word "smart quotes".  A bit of experimenting suggests ASCII 145 and
146 for single quotes and 147 and 148 for double quotes.  I have the same
problem with my forms, and for me they display okay in IE, but not in
Mozilla.  I must put some editing in place for this :-)  

Olwen Williams
[EMAIL PROTECTED]


-----Original Message-----
From: Roger Spears [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 6:07 AM
To: PHP - General
Subject: [PHP] is ' or " different in MS-Word then ascII?


Hello,

This question may border on OT...

Some of my visitors create their text in Ms-Word and then cut and paste 
it into the text area and then submit the form.

When I retrieve it from the database, I do a stripslahses, htmlentities 
and nl2br in that order to preserve the format of the submitted test. 
When I view this text, single or double quotes show up as little white 
square blocks.  I've tested this out with MS-Word on a windows machine 
and a mac machine.  Same thing happens with either OS.  This only 
happens when they cut and paste from MS-Word into the text area.  If 
they type text into the text area directly, everything is fine...

I know I can search through their submitted text and swap out the 
unrecognized character and insert the proper one.  I just don't know 
what to look for as being the unrecognized character.

____________________________________________________________________
CAUTION - This message may contain privileged and confidential 
information intended only for the use of the addressee named above.
If you are not the intended recipient of this message you are hereby 
notified that any use, dissemination, distribution or reproduction 
of this message is prohibited. If you have received this message in 
error please notify Safe Air Ltd immediately. Any views expressed 
in this message are those of the individual sender and may not 
necessarily reflect the views of Safe Air.
_____________________________________________________________________
For more information on the Safe Air Group, visit us online
at http://www.safeair.co.nz/ 
_____________________________________________________________________

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to