funny charecters

Discussion in 'HTML & Website Design' started by asgsoft, Sep 30, 2009.

  1. #1
    asgsoft, Sep 30, 2009 IP
  2. designedbyjackie

    designedbyjackie Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    my guess is the second link looks like a word doc..

    Word is famous for inserting wierd things, and if you just copied and pasted it will copy the wierd stuff. My suggestion is to edit the second link outside of word, like notepad, then reinsert.

    That will get rid of the wierd stuff
     
    designedbyjackie, Sep 30, 2009 IP
  3. asgsoft

    asgsoft Well-Known Member

    Messages:
    1,737
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    160
    #3
    it's using exactly the same database text.

    only difference is one is in a script and the other isn't :S

    when I look at the text in phpmyadmin too it seems alright.
     
    asgsoft, Sep 30, 2009 IP
  4. designedbyjackie

    designedbyjackie Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hmmmm that is oddd....

    Try taking it out of PHPadmin alter in Notepad and reinsert.....

    I have only seen the weird characters like that, come out of word... it happened to me the other day.. lol
     
    designedbyjackie, Sep 30, 2009 IP
  5. myst_dg

    myst_dg Active Member

    Messages:
    224
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Maybe caused by different charset.
     
    myst_dg, Sep 30, 2009 IP
  6. asgsoft

    asgsoft Well-Known Member

    Messages:
    1,737
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    160
    #6
    the thing is, it's typed in MS Word, then copied into a WYSIWYG editor which saves the characters well.

    So a different char-set, what are the possible options? and what char-set does MS Word use?
     
    asgsoft, Oct 1, 2009 IP
  7. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #7
    Windows applications, and many Win oriented editors seem to default to Windows-1252. Your server response header doesn't set a character encoding, so the browser looks to the meta http-equiv. You've set utf-8, which is a good choice. Since it was saved in the Win proprietary encoding, there are many character entities that are invalid in ASCII, iso-8859-1, and utf-8; for example, quotes and hyphens.

    Open the file in your editor, and "save as". Select utf-8 (no bom). Do not select unicode, or utf-x with bom.

    That should get things ok. Then, do not ever, and I mean never, use a word processor for web stuff. Use a plain text editor.

    cheers,

    gary
     
    kk5st, Oct 1, 2009 IP
    asgsoft likes this.