Plop Forum

General Category => Sitemap generator, other tools => Topic started by: dLehr on June 17, 2016, 07:28:57 AM

Title: PHP XML Sitemap Generator - Problem with special characters (umlauts)
Post by: dLehr on June 17, 2016, 07:28:57 AM
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
Title: Re: PHP XML Sitemap Generator - Problem with special characters (umlauts)
Post by: Elmar on June 17, 2016, 08:42:27 AM
Please tell me the Website that I can test and fix it. You can send it as private message.

Regards
Elmar
Title: Re: PHP XML Sitemap Generator - Problem with special characters (umlauts)
Post by: dLehr on June 17, 2016, 09:15:42 AM
Hi,

Thank you for the fast support,

the website is: http://www.lmdfdg.at/ (http://www.lmdfdg.at/)

kind regards
Title: Re: PHP XML Sitemap Generator - Problem with special characters (umlauts)
Post by: Elmar on June 17, 2016, 10:36:58 AM
I dont find an URL with an umlaut on that website.
Title: Re: PHP XML Sitemap Generator - Problem with special characters (umlauts)
Post by: dLehr on June 17, 2016, 12:00:39 PM
Please Look here:

http://www.lmdfdg.at/top-suchanfragen.php (http://www.lmdfdg.at/top-suchanfragen.php)

You can check also the /sitemap.xml

Kind regards
Title: Re: PHP XML Sitemap Generator - Problem with special characters (umlauts)
Post by: Elmar on June 18, 2016, 13:14:45 PM
The umlaute in the URLs are for example ü for ü. The sitemap script seems to work fine with this.
Title: Re: PHP XML Sitemap Generator - Problem with special characters (umlauts)
Post by: dLehr on June 18, 2016, 13:50:57 PM
Sure;

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

Kind regards
Title: Re: PHP XML Sitemap Generator - Problem with special characters (umlauts)
Post by: Elmar on June 18, 2016, 13:57:29 PM
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
Title: Re: PHP XML Sitemap Generator - Problem with special characters (umlauts)
Post by: dLehr on June 18, 2016, 14:20:53 PM
Ok,

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

Kind regards
Title: Re: PHP XML Sitemap Generator - Problem with special characters (umlauts)
Post by: Elmar on June 18, 2016, 14:34:36 PM
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