how to generate XML sitemap with special symbols in the link?
问题 Hi I am trying to generate google sitemap for my site, how can i make link to contain special symbols like below: <url> <loc>http://example.com/alf-“xxx-yyy”--cache</loc> </url> how can i handle such characters??? i have tried urlencode but this doesn't work :(( Thanks for your help 回答1: The special characters that you are referring to are the directional curly quotes “ and ” . You can use the numeric entity reference for those characters “ and ” , respectively. http://www.dwheeler.com/essays