Schema issue with Czech characters

#870697
  • Resolved Petr Antusek
    Rank Math free

    Hello,
    it seems like I’m having an issue with my schema from RankMath, because my Site Title, Address and some other fields contain Czech characters, for example Ž or Š which then get incorrectly propagated into the code.
    The code output uploaded here:
    https://imgur.com/a/i0BWbn3
    For example, in the Street Address, it should be “Jarošov nad Nežárkou 204” and it gets output like this: Jaro\u0161ov nad Ne\u017e\u00e1rkou 204
    Can you please assist in resolving this issue?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    We apologize for the issue you are facing with the schema output containing Czech characters. It seems that the characters are being encoded in a way that is not displaying correctly in your schema markup.

    To resolve this issue, you can try the following steps:

    1. Check Database Encoding: Ensure that your database is set to use UTF-8 encoding, which supports Czech characters. You can check this in your hosting control panel or by contacting your hosting provider.

    2. Update Rank Math: Make sure you are using the latest version of Rank Math, as updates often include bug fixes and improvements related to character encoding.

    3. Schema Settings: Review the settings in Rank Math for the schema fields where you are entering Czech characters. Ensure that they are entered correctly without any additional formatting that might cause issues.

    4. Custom Code: If the issue persists, you may need to add custom code to handle character encoding properly. This could involve using PHP functions to ensure that the output is correctly formatted for JSON.

    If these steps do not resolve the issue, we recommend replying to this ticket, and a human agent from the Rank Math Support team will take over and provide further assistance.

    Thank you for bringing this concern to our attention! We’re here to help you get this sorted out.

    Sources:
    Resolving Rank Math Schema Markup Related Issues

    Hello,
    I have checked all the mentioned points and seems that they are all fine.
    Can you please let me know how to solve this?
    Thank you

    Hello,

    Thank you for contacting us. We apologize for any inconvenience this issue may have caused.

    The issue with Czech characters being incorrectly displayed as Unicode-escaped values (like \u0161 for “š”) in a WordPress installation is usually caused by one of the following factors:

    If the database or server is not configured to handle UTF-8 properly, characters with accents or diacritics may be displayed incorrectly. This is a common cause when the database collation is not set to utf8mb4, which supports a wider range of special characters.

    Some fields in schema markup are generated using JSON, and certain plugins or PHP functions may escape special characters in JSON output, resulting in encoded strings like \u0161.

    However, we tested the schema on your homepage using Google Rich Results test tool and can see that the tool can correctly decode the schema https://search.google.com/test/rich-results/result/r%2Forganization-info?id=RNojNwVZugb9mZ1_yYaI0g.
    https://imgur.com/FwnryK5

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Petr Antusek
    Rank Math free

    Hello,

    thanks for letting me know.
    Not sure if it can be connected, but I was checking it in the first place because my Site Title is not showing up correctly on Google and just shows a URL, so that got me thinking if it can be connected.
    Seems to me that everything should be setup fine in RankMath as well as WordPress. Do you think you could help with that? Screenshots attached:
    Rankmath settings: https://imgur.com/a/Z1JT4mJ
    Wordpress settings: https://imgur.com/a/7BEc4C4
    Google Search preview: https://imgur.com/a/tBgOu7f

    Thanks in advance.

    Hello,

    Please note that Google uses a machine learning algorithm to generate the Sitename for your pages based on other information it has collected about your website and your industry.

    Here’s a link for more information:
    https://rankmath.com/kb/display-site-name-in-search-results/

    Moreover, please go through the Google guidelines about the site name to help you increase the chances of displaying the desired site name on the SERP:
    https://developers.google.com/search/docs/appearance/site-names

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Schema issue with Czech characters’ is closed to new replies.