Author Topic: PHP XML Sitemap Generator - Problem with special characters (umlauts)  (Read 11949 times)

dLehr

  • Newbie
  • *
  • Posts: 5
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
Please tell me the Website that I can test and fix it. You can send it as private message.

Regards
Elmar

dLehr

  • Newbie
  • *
  • Posts: 5
Hi,

Thank you for the fast support,

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

kind regards

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
I dont find an URL with an umlaut on that website.

dLehr

  • Newbie
  • *
  • Posts: 5
Please Look here:

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

You can check also the /sitemap.xml

Kind regards

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
The umlaute in the URLs are for example ü for ü. The sitemap script seems to work fine with this.

dLehr

  • Newbie
  • *
  • Posts: 5
Sure;

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

Kind regards

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
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

  • Newbie
  • *
  • Posts: 5
Ok,

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

Kind regards

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
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