Viewing 1 replies (of 1 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    The URLs in the Chinese sitemap are valid. We need to URL-encode non-ASCII characters; otherwise, the sitemap would be invalid.

    From https://www.w3schools.com/tags/ref_urlencode.ASP:

    URL encoding converts characters into a format that can be transmitted over the Internet.

    URLs can only be sent over the Internet using the ASCII character-set.

    Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format.

    URL encoding replaces unsafe ASCII characters with a “%” followed by two hexadecimal digits.
    URLs cannot contain spaces. URL encoding normally replaces a space with a plus (+) sign or with %20.

    Modern browsers can convert them back to human-readable characters in the URL-bar at the top, and so does WordPress for you in its interface. However, this is not a requirement. We can’t implement a URL-decoder in the sitemap’s XSL stylesheet: decoding thousands of URLs for display requires a lot of resources and can crash the visitor’s browser.

Viewing 1 replies (of 1 total)
  • The topic ‘Multi-language sitemap’ is closed to new replies.