Hi - I've built a web-based XML editor using PHP, so that clients can edit the sites themselves. The site HTML is generated dynamically via Sablotron. The problem is the users are copying-and-pasting from MS Word, and putting things like smart quotes and greek characters (one site is about maths) into the input boxes. This causes PHP to freak when it's trying to store the new content into the XML, and even if PHP survives, Sablotron breaks.
I gather I need to set the XML document, XSL file, and stylesheet output to be UTF-16, instead of UTF-8. I can't see anything in the domxml functions to set encoding, though. Anyone got any ideas? Thanks, Gwyn. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php