XML Sitemaps Generator

Author Topic: Does not perform Entity escaping  (Read 39296 times)

paypal1

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Does not perform Entity escaping
« on: July 15, 2005, 06:48:00 AM »
At [external links are visible to admins 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 admins only]
It should convert it to this: [external links are visible to admins only]
but it doesn't

Will this be a revision fix down the road for your script?
Thanks

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Does not perform Entity escaping
« Reply #1 on: July 15, 2005, 12: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:
http://www.xml-sitemaps.com/generator-demo/

(for instance, this URL:
http://www.xml-sitemaps.com/generator-demo/index.php?op=chlog&log=3
is stored like:
http://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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

paypal1

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Re: Does not perform Entity escaping
« Reply #2 on: July 15, 2005, 03:13:03 PM »
I am running the latest version: 1.06

What I get in the sitemap.xml file is:

Code: [external links are visible to admins only]
<loc>http://www.thedomain.com/search_results.php?country=254&region=Florida</loc>
So, NO.....the script does not encode.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Does not perform Entity escaping
« Reply #3 on: July 15, 2005, 05: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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Does not perform Entity escaping
« Reply #4 on: July 15, 2005, 05: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)
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2