On Thu, September 28, 2006 12:27 pm, Ross wrote: > Is there a function that sorts out all the dodgy characters in an > email... Maybe. Sometimes those dodgy characters are UTF-8, Unicode, or some sort of codepage in some language other than the one your server is configured to use (which is probably English in Latin-1 or similar). In that case, you would need to handle International Email with charsets and all that. Sometimes those dodgy characters are just people copy pasting MS Word and believing that somehow the entire World is going to "see" what they see, because their email reader happens to be Outlook and happens to grok proprietary character-codes for MS Word stylings. There are User Contributed Notes for str_replace that explain how to convert Word proprietary characters to their closest text-only equivalents. It's also entirely possible that the user is pasting in text from some *other* application (gasp! not everybody uses Word?!) and then you're on your own. Identifying which mess you have on your hands, or possibly a combination of messes, or even, in some cases, specific users who are causing what look like similar problems but are completely different messes, is going to be the "fun" part... PS This is the kind of thing I mean in the other thread about escaping data. I realize that maybe PHP cannot possibly have a function to magically do what needs to be done to escape/convert this data, but I sure wish it had one, cuz an awful lot of people need it... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php