id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
5618	Produces invalid URLs	lostclus@gmail.com	esm	!TracSitemap don't use URL quoting. Some special characters and unicode characters must be quoted. For example:\r\n{{{\r\n<loc>http://example.org/wiki/Скачать</loc>\r\n}}}\r\nshould be:\r\n{{{\r\n<loc>http://example.org/wiki/%D0%A1%D0%BA%D0%B0%D1%87%D0%B0%D1%82%D1%8C</loc>\r\n}}}\r\n\r\nSolution: look at the Trac source code and you see that Trac uses special functions to build URLs. This functions knows about all special characters that must be quoted.\r\n\r\nInstead of writing:\r\n{{{\r\n'wiki/%s' % (row[0],)\r\n}}}\r\nwrite:\r\n{{{\r\nreq.href('wiki', row[0])\r\n}}}\r\n\r\nAnd remember that req.href() adds req.base_path automatically.	defect	closed	normal	TracSitemapPlugin	normal	fixed			0.12
