Does not perform Entity escaping
« on: July 15, 2005, 07:48:00 AM »
At [ External links are visible to forum administrators only ] , Google states that you must convert specific characters to UTF-8 encoded format BUT this script does not.

So if you have a link like: [ External links are visible to forum administrators only ]
It should convert it to this: [ External links are visible to forum administrators only ]
but it doesn't

Will this be a revision fix down the road for your script?
Thanks
Re: Does not perform Entity escaping
« Reply #1 on: July 15, 2005, 01:47:49 PM »
Hi,

the generator script certainly encodes all URLs to correspond  UTF-8 encoding, as described at google sitemap protocol.
You can check this at generator demo here:
https://www.xml-sitemaps.com/generator-demo/

(for instance, this URL:
https://www.xml-sitemaps.com/generator-demo/index.php?op=chlog&log=3
is stored like:
https://www.xml-sitemaps.com/generator-demo/index.php?op=chlog&log=3

All other non-UTF characters are encoded too.

If you have some particular problem with your website sitemap creation, please let me know your generator instance in PM and I will check that.
Re: Does not perform Entity escaping
« Reply #2 on: July 15, 2005, 04:13:03 PM »
I am running the latest version: 1.06

What I get in the sitemap.xml file is:

Code: [Select]
<loc>http://www.thedomain.com/search_results.php?country=254&region=Florida</loc>
So, NO.....the script does not encode.
Re: Does not perform Entity escaping
« Reply #3 on: July 15, 2005, 06:22:31 PM »
Hi again,

the script does encode :)
I just crawled your site with standard PHP Sitemap Generator v1.06 and all '&' signs are urlencoded to '&amp;' correctly!

But I believe I know why you think it doesn't:  perhaps you're checking your sitemap with the browser, which makes the revert operation - it decodes the URLs to show them to you. If you want to see the source of your XML file, please save it to disk and view with some text editor/viewer, not browser.
Re: Does not perform Entity escaping
« Reply #4 on: July 15, 2005, 06:25:10 PM »
One more thing. You can add your sitemap to your google webmaster account here:
http://www.google.com/webmasters/sitemaps

to ensure the sitemap is encoded correctly (google will inform about parser error otherwise)