• is there a good way to set up WP to convert curly quotes to straight quotes? ideally before posting data to the database, so that there are no curly quotes in the database.
    I have a mult-author blog and some of my users will paste from MSWord with curly quotes, and it’s not possible to change this behavior on the part of my authors. This presents no problem on my website — the curly quotes are rendered on the web page, sort of. But it causes problems in the display of my RSS feeds, for reasons that have nothing to do with WP. I’m using CaRP to display my feeds, and CaRP doesn’t seem to be able to handle the curly quotes.
    Anyhow, life would be simpler for me if curly quotes simply never made it into my database, but were replaced with straight quotes. Maybe this can be done with regular expressions? Something similar to the sanitize function. That’s what I’ll try, but if you already have a way of dealing with this please reply…

Viewing 5 replies - 1 through 5 (of 5 total)
  • that wasn’t supposed to be anonymous… it’s me.

    it looks like the tricky thing is finding a way to express MSWord curly quotes in ASCII so I can use preg_replace() to get rid of them?
    Is there a way to do that? Is there some kind of code that I can use to signify MSWord curly quotes in a text file so that I can then replace them with straight quotes?
    this isn’t really a WP problem, but it sure would be nice to keep curly quotes and other problematic characters out of the database altogether, wouldn’t it?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Ever since the beginning, curly quotes have always broken RSS feeds. The real question is, why not use straight quotes? As for comments, I’m not sure how annoying that is. I’ve never, not even when I was MT, had a user post a comment with curly quotes.

    Thread Starter Anonymous

    Curly quotes show up as default in my posts, but I would prefer straight quotes.
    How do you achieve this?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Change your default font to one that uses straight quotes instead of curly quotes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘curly quotes causing RSS problems’ is closed to new replies.