xmlURIEscape seems to trample on the user part of a URI. xmlSaveUri assumes a http style uri (http://user somewhere com/) and doesn't work properly for mailto type schemes, but for libxml2 that is probably ok. However calling the following: xmlUriEscape(BAD_CAST "http://user somewhere com") results in "http:user@//somewhere.com". The attach patch fixes that, but still does not properly handle the mailto type scheme. Again, probalby not a problem for libxml2 and would be difficult to fix without adding lots of scheme specific logic. (See attached file: uri.diff)
Attachment:
uri.diff
Description: Binary data