Loading TOC...

fn:encode-for-uri

fn:encode-for-uri(
   $uri-part as xs:string
) as xs:string

Summary

Invertible function that escapes characters required to be escaped inside path segments of URIs.

Parameters
$uri-part A string representing an unescaped URI.

Example

fn:encode-for-uri("http://example.com/Weather/Los%20Angeles#ocean")
=> "http%3A%2F%2Fexample.com%2FWeather%2FLos%2520Angeles%23ocean"

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.