PHP XML Sitemap Generator - Problem with special characters (umlauts)

Started by dLehr, June 17, 2016, 07:28:57 AM

Previous topic - Next topic

dLehr

Hi,

I use your XML Sitemap Generator Script too and i have noticed that the script have problems with umlauts like ö,ä,ü.

Is there a way to fix this problem?

kind regards

Elmar

Please tell me the Website that I can test and fix it. You can send it as private message.

Regards
Elmar

dLehr


Elmar



Elmar

The umlaute in the URLs are for example ü for ü. The sitemap script seems to work fine with this.

dLehr

Sure;

But if you follow the url from sitemap.xml (copy & paste) it don't work correctly.

Kind regards

Elmar

You cannot copy and paste such URL, because the "&" of "¨" is encoded for XML to "&". When you use a software to read the URL from the sitemap.xml, then the software decodes the "&" back to "&".

Regards
Elmar

dLehr

Ok,

So you say that the sitemap is correctly and readable for the search engines like Google?

Kind regards

Elmar

I give no guarantee that my sitemap is correct.

Just run a validity check to be sure. There are websites that are doing such checks.

Regards
Elmar