[xml] xmlURIEscapeStr does not escape some RFC 3986 reserved characters



xmlURIEscapeStr(str, "") does not escape the following characters, which are reserved characters in RFC 3986 section 2.2:

 

    "@"

    "!"

    "'"   <--single quote

    "("

    ")"

    "*"

 

It appears that xmlURIEscapeStr escapes only reserved characters defined in the older RFC 2396.

 

Does libxml2 have a way to escape RFC 3986 reserved characters? I don’t need to parse the URI, I just need to escape reserved characters.

 

Thanks,

Gustav

 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]