• hello,
    this is my first post here, and, well, i’ve followed the forum’s search guidelines, and found no solution for my problem.

    i’ve been using wp for quite a while now, and, until today, i was still running 1.5. I have my old site backed up, both files and db, so i can fall back to it if needed. I’m running RHEL3, PHP 4, and MySQL 4.

    I have a problem with character substitution in the html, for example, my website’s name is 0x45.com, it will get substituted only in a few places for 0& # 215 ; 45.com (all together, no spaces), thus preventing css styles to load, as far as i know. it also modifies the text on my posts, for example, changing single quotes for & # 8217 ; (all together, with no spaces) etc.

    I was thinking it could have something to do with the database encoding, but i’m almost positive it is utf-8, same as my wp installation, and i also didn’t have any problem with my 1.5 site.

    I get this with both IE and FF, i am not sure if this is relevant, but i want to be as accurate as possible.

    If anyone has any thoughts, ideas, pointers, or even a solution, i’d be very grateful if you could share.

    thank you a lot in advance.

    ps. i’m sorry if there’s something i overlooked, been all weekend playing with it, and honestly, i’ve got no idea of what it is.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Well, this kind of character replacement isn’t used for URLs because of reasons like this one:
    The “&” normally introduces a PHP Get parameter.

    I only recommend their use within the BODY and in the TITLE tags. And by the way it’s only necessary for some special characters if there’s no charset specified. What was your actual reason to mask the X ?

    Thread Starter jcapmany

    (@jcapmany)

    well, it’s not me, it’s WP that replaces the character in the domain name, but apparently only in the css stylesheet and some other parts, for example, rss links, forms…

    example:

    <link rel=”stylesheet” href=”https://test.0&#38; #215;45.com/wp-content/themes/default/style.css” type=”text/css” media=”screen” />
    <link rel=”alternate” type=”application/rss+xml” title=”Anywhere but here… RSS Feed” href=”https://test.0&#38; #215;45.com/?feed=rss2″ />
    <link rel=”pingback” href=”https://test.0&#38; #215;45.com/xmlrpc.php” />

    i even tried a new installation, without using my old database for testing purposes, and it does it anyways.

    the character encoding is utf-8, same as my old 1.5 installation which worked just fine.

    i’m starting to believe it’s some sort of security mechanism, as “0x” could be interpeted as the begining of a hex number… does it make any sense?.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘random (?) character substitution problem in html’ is closed to new replies.