Stop wordpress converting my characters (6 posts)

  1. moshu
    Posted 10 years ago #

    It's strange, because I use a lot of non US-ASCII characters (even my commenters do), and in my testing period I've tried even other alphabets than the Latin and it worked perfectly!
    Are you by any chance copying your posts from a word processor that encodes the text differently than utf?
    Or are you using any of the textile/markdown plugins? I remember some posts about those screwing up the characters...
    If I find them I'll post back.

  2. DarkPhoenix
    Posted 10 years ago #

    No, I haven't enabled any plugins, and I'm just typing the text directly into the browser (Moz Firefox) and I'm sure it's set to UTF-8 while posting. It may make a difference that I don't run Apache, but IIS, but I'm still kinda confused why that should matter, because the PHP shouldn't really be too dependant on which server it runs, after all it's just fed GET and POST values, and sends back output, nothing else...

  3. serendipity
    Posted 10 years ago #

    Well, apostrophes get converted in typographic ("curly") apostrophes. What does the site look like? Can we have a URL?

  4. Kafkaesqui

    Posted 10 years ago #

    If you want to turn this off in WP, in the /wp-includes directory look for vars.php. At the end of that file you'll see:
    // Some default filters
    following this are a number of function calls to add_filter(). Just comment out (place two slashes at the start of the line) the ones you don't want to use, like so:
    // add_filter('the_content', 'wptexturize');

  5. Anonymous
    Posted 10 years ago #

    It's in your index.php.

  6. serendipity
    Posted 10 years ago #

    DarkPhoenix: <cite>I dunno why anyone would want right single quotes for apostrophes, as this is syntactically wrong. At least I think it is.</cite>
    Just for the sake of completeness, it isn't typographically wrong (syntax has nothing to do with it): As a quick look through my bookshelf shows me, typesetters have long adopted a curly form for apostrophes, which, except in typography of an exceptionally high degree of refinement, is identical to that of the English closing single quote.
    As for the other line, Anonymous is right: It should be "hard-coded" in your index.php.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.