The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. OnPage Issues with UTF-8 and ISO-8859-1

    OnPage Issues with UTF-8 and ISO-8859-1

    Technical SEO Issues
    4 4 1.9k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jmueller
      jmueller last edited by

      Hi guys,

      I hope somebody can help me figure this out. On one of my sites I set the charset to UTF-8 in the content-type meta-tag. The file itself is also UTF-8. If I type german special chars like ä, ö, ß and the like they get displayed as a tilted square with a questionmark inside.

      If I change the charset to iso-8859-1 they are getting displayed properly in the browser but services like twitter are still having the issues and stop "importing" content once they reach one of those specialchars.

      I would like to avoid having to htmlencode all on-page content, so my preference would be using UTF-8..

      You can see it in action when you visit this URL for example: http://www.skgbickenbach.de/aktive/1b/artikel/40-minuten-fußball-reichen-nicht_1045?charset=utf-8

      Remove the ?charset parameter and the charset it set to iso-8859-1.

      Hope somebody has an answer or can push me into the right direction.

      Thanks in advance and have a great day all.

      Jan

      1 Reply Last reply Reply Quote 0
      • Theo-NL
        Theo-NL last edited by

        Getting a web page to display your content as TRUE utf-8 requires everything to be set at the utf-8 encoding. 'Everything' includes: your database, your database tables, your database fields, your connection from php to your database, you header as set by php, your header as set by html, your content itself etc.

        The following resources were extremely helpful to me when I was switching to utf-8 (which is by far the better encoding over ISO):

        http://www.phpwact.org/php/i18n/utf-8

        http://www.phpwact.org/php/i18n/utf-8/mysql

        Bonus tip: make sure your content and files are saved as utf-8 without BOM (Byte Order Mark), this will save you lots of trouble later!

        Hondaspeder 1 Reply Last reply Reply Quote 1
        • Hondaspeder
          Hondaspeder @Theo-NL last edited by

          Wow good answer!

          1 Reply Last reply Reply Quote -1
          • KeriMorgret
            KeriMorgret last edited by

            Hi Jan,

            I'm following up on old questions. Did Theo's answer solve your problem for you?

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • My site have a issue
              Christy-Correll
              Christy-Correll
              1
              2
              36

            • Sudden decrease in indexed AMP pages after 8/1/16 update
              0
              1
              253

            • 2 sites using 1 CMS... issues?
              EGOL
              EGOL
              0
              8
              140

            • Screaming Frog Content Showing charset=UTF-8
              mosquitohawk
              mosquitohawk
              0
              2
              523

            • Do I have panda issues?
              Chris.Menke
              Chris.Menke
              0
              4
              92

            • Rankings Issues
              trophycentraltrophiesandawards
              trophycentraltrophiesandawards
              0
              11
              421

            • Penalized by Penguin 1.1 Release
              NainaGola
              NainaGola
              0
              17
              1.2k

            • Drupal 1.5 Issue: Taxonomy
              stefanok
              stefanok
              0
              3
              515

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy