character conversion - horrible characters from MS Word

From: Date: Mon, 30 Jul 2001 17:46:05 +0000
Subject: character conversion - horrible characters from MS Word
Groups: php.general 
Request: Send a blank email to php-general+get-60246@lists.php.net to get a copy of this message
One of my applications is being heavily used by people who are cutting and pasting text from MS word into text areas within a form. I dutifully store what they send, and display it later using htmlentities and nl2br to sort out funny characters. Sadly, quite a few oddballs for which there are no html entity equivalents sneak through the system - for example the different width dashes at chr 150 and 151. Does anyone have a comprehensive system for catching such characters, or at least a suitable character mapping so I don't have to do the research to get an exhaustive list :) Cheers -- Phil Driscoll

« previous php.general (#60246) next »