That's interesting - and unexpected. :(
I wonder why the'd be htmlspecialchar'd? Maybe running the result through html_enty_decode() might help. Not sure why that'd be necessary though.
Anyway, glad to help!
-- Jim
On 9/25/07, Christensen, Courtney ChristensenC@battelle.org wrote:
It works, the code you posted was perfect. It seems to change the characters to their htmlspecial character equivalent, which I wasn't expecting, but which is infinitely better than before.
Thanks again! -Courtney
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Christensen, Courtney Sent: Tuesday, September 25, 2007 3:14 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] users copy and paste "bad" special characters from MS Word
Looks like the method described here is probably what you want:
http://shiflett.org/blog/2005/oct/convert-smart-quotes-with-php
-- Jim
That looks like exactly what I need. Thank you, Jim, and I applaud your mad search skills. I'd never heard them called "smart quotes". If anyone cares to know the outcome I'll let you know once I've tested?
-Courtney
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l