I'm having a really interesting problem and I'm not sure how to get around it.
I've got data coming from InDesign CS (on PC) that goes into a UTF-8 XML template for inclusion into a MySQL 5 database (MyISAM table). This is done with a PHP (5.0.x) importer.
Everything works fine except that I need the curly, or "smart" quotes removed (replaced with standard quotes) from the data before it goes into the database, and I can't seem to get it to work.
I've tried a couple different code snippets from various PHP sites I found Googling around, but to no avail.
PHP's function strlen reports the left curly quote is 3 characters long. As a result, I'm assuming that this means I'm looking at multi-byte strings, but I know very little about it, nor do I know much about character sets (just enough to get me by most of the time).
And I can't just paste the curly quote into my PHP editor. Depending on which editor I open the script with, the character gets converted into ugliness. That, and it doesn't seem to work for me anyway.
Any ideas? This is driving me crazy...