1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Answer this question and get a cookie.

Discussion in 'BlackHat Lounge' started by HenryHavoc, Mar 17, 2009.

  1. HenryHavoc

    HenryHavoc Jr. VIP Jr. VIP

    Joined:
    Mar 24, 2008
    Messages:
    794
    Likes Received:
    1,529
    Occupation:
    Hustler
    Location:
    Cincinnati
    Alright, someone try to explain this please! I'm coding a site in PHP, and it appears that when I save it, this happens everytime there would normally be a ' or "

    [​IMG]

    It does it in firefox and IE. Someone please help me get this fixed and I'll hook you up with an oreo! :D
     
  2. workingwhileworking

    workingwhileworking Junior Member

    Joined:
    Jan 18, 2009
    Messages:
    137
    Likes Received:
    518
    Occupation:
    I get paid to surf internet, see the name.
    Location:
    Selling Water To Whales
    your browsers character encoding set to universal?
     
  3. HenryHavoc

    HenryHavoc Jr. VIP Jr. VIP

    Joined:
    Mar 24, 2008
    Messages:
    794
    Likes Received:
    1,529
    Occupation:
    Hustler
    Location:
    Cincinnati
    That was my first thought, or maybe the character encoding in the CSS, but I tried different settings, and even people on other browsers are seeing the same thing :-/

    Sorry if my typing is bad, I literally haven't slept at all tonight. I have to "wake up" for school in less than two hours, and I haven't gotten one hour of sleep lol.
     
  4. keinehabe

    keinehabe Supreme Member

    Joined:
    Nov 4, 2008
    Messages:
    1,207
    Likes Received:
    472
    Gender:
    Male
    Occupation:
    -= CEO =-
    Location:
    Heaven
    Home Page:
    Code:
    htmlspecialchars
    must be used on the code :) it's because your cms giving wrong output . for example
    Code:
    <?php echo htmlspecialchars($SHOWMEABEER) ?>
    .... I hope you got the catch :) ... I had similar error it's happens usually on wordpress blogs when you are trying to import articles from some PLR rewrited which had on the words the char ' , you can edit those PLR articles to delete the char or you can setup one theme for you with decoding the htmlspecialchars ...
     
  5. HenryHavoc

    HenryHavoc Jr. VIP Jr. VIP

    Joined:
    Mar 24, 2008
    Messages:
    794
    Likes Received:
    1,529
    Occupation:
    Hustler
    Location:
    Cincinnati
    Hey it sounds like you had a similar problem that I have right now (i'm copying from a RTF and pasting into my .php files though). So how exactly do I fix this? I'm sorry, I'm way tired. If I wasn't so exhausted I'd probably understand right away.

    Do I put a certain code in my pages?
     
  6. s0phia

    s0phia Regular Member

    Joined:
    Nov 11, 2008
    Messages:
    266
    Likes Received:
    280
    a) i dont see a question in ur opening post ;)

    b) character encoding, google it next time to get a faster answer.
    http://www.webstandards.org/learn/articles/askw3c/dec2002/
    http://www.w3.org/TR/xhtml1/

    i believe it shud look like this, not sure atm tho:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
     
    Last edited: Mar 17, 2009
  7. HenryHavoc

    HenryHavoc Jr. VIP Jr. VIP

    Joined:
    Mar 24, 2008
    Messages:
    794
    Likes Received:
    1,529
    Occupation:
    Hustler
    Location:
    Cincinnati
    Hehe thanks! I knew it was the character encoding shit. I found an online text -> UTF-8 converter, and it worked like a charm!

    Wow I have to wake up in one hour and 18 minutes. This is going to SUCK at school!