none
Odd character replacement RRS feed

  • Question

  • Hello all,

    Here's something I've not seen before. I have these odd characters (see image below) appearing in my pages when viewed in a browser. Anyone have any ideas?

    Thanks,

    Martin


    Stabes

    Tuesday, April 12, 2016 8:32 AM

Answers

  • If the pages aren't encoded in UTF-8, you need to change one thing or the other: the meta charset tag, or the encoding. Pick one.

    What happens if you change the meta charset tag from UTF-8 to ISO-8859-1?

    And, if you are just now seeing this and haven't before, what did you change?

    I took a look a the site in your profile, which I'm assuming is the site under discussion

    How are those pages created?   I assume you didn't type them directly into EW.

    E.g., on http://www.pretext.co.za/shop/index.html you find:

    "“This is a powerful read that starts from the heart, captures a rich depth of humanity..."

    What does the source for that line look like in EW, on your PC?



    Kathleen Wilber
    BrightWillow - ASP.NET applications




    • Edited by KathyW2 Tuesday, April 12, 2016 8:46 PM
    • Marked as answer by Stabes Thursday, April 14, 2016 6:58 AM
    Tuesday, April 12, 2016 4:08 PM

All replies

  • It is probably a UTF8 problem.  Web browsers expect to see webpages in UTF8 format.

    <meta charset="utf-8" />

    You probably have the webpage saved in ANSI format.  Open the webpage in Notepad and do a Save As.  Select encoding UTF-8 (bottom of form).  Try that.


    • Edited by mogulman52 Tuesday, April 12, 2016 2:04 PM
    Tuesday, April 12, 2016 2:03 PM
  • Thanks. Just two issues.

    Here's the page doctype:

    <!DOCTYPE html>
    <html>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    And... it occurs on literally about 4200 pages. Ouch. Can't open every one of those in Notepad. :-(

    Martin


    Stabes

    Tuesday, April 12, 2016 2:13 PM
  • If the pages aren't encoded in UTF-8, you need to change one thing or the other: the meta charset tag, or the encoding. Pick one.

    What happens if you change the meta charset tag from UTF-8 to ISO-8859-1?

    And, if you are just now seeing this and haven't before, what did you change?

    I took a look a the site in your profile, which I'm assuming is the site under discussion

    How are those pages created?   I assume you didn't type them directly into EW.

    E.g., on http://www.pretext.co.za/shop/index.html you find:

    "“This is a powerful read that starts from the heart, captures a rich depth of humanity..."

    What does the source for that line look like in EW, on your PC?



    Kathleen Wilber
    BrightWillow - ASP.NET applications




    • Edited by KathyW2 Tuesday, April 12, 2016 8:46 PM
    • Marked as answer by Stabes Thursday, April 14, 2016 6:58 AM
    Tuesday, April 12, 2016 4:08 PM
  • You could batch convert with something like Codepage Converter.  I would try one to test it out.
    Wednesday, April 13, 2016 1:11 PM
  • Thanks Kathleen. Changing UTF-8 to ISO worked.

    Martin


    Stabes

    Thursday, April 14, 2016 6:59 AM