Re: [MarkLogic Dev General] Question about xdmp:url-encode

2010-12-10 Thread McBeath, Darin W (ELS-STL)
loper Discussion Subject: Re: [MarkLogic Dev General] Question about xdmp:url-encode You might also just need fn:encode-for-uri, which produces upper case hex digits. Depending on the source of the data, I might be concerned about the risk of variation in the set of reserved characters though. I'

Re: [MarkLogic Dev General] Question about xdmp:url-encode

2010-12-09 Thread Sam Neth
You might also just need fn:encode-for-uri, which produces upper case hex digits. Depending on the source of the data, I might be concerned about the risk of variation in the set of reserved characters though. I'd probably lean towards comparing to a decoded copy of the string, stored with or

Re: [MarkLogic Dev General] Question about xdmp:url-encode

2010-12-09 Thread Michael Blakeley
Darin, have you considered setting a case-insensitive collation? That should work for an XPath expression. -- Mike On Dec 9, 2010, at 17:35, "McBeath, Darin W (ELS-STL)" wrote: > > I am using xdmp:url-encode to encode a string. While it's nice to have the > feature to encode a 'space' as e

[MarkLogic Dev General] Question about xdmp:url-encode

2010-12-09 Thread McBeath, Darin W (ELS-STL)
I am using xdmp:url-encode to encode a string. While it's nice to have the feature to encode a 'space' as either '+' or '%20', I wonder if there is perhaps an undocumented feature to encode for example a '?' as either '%3f' or '%3F'. MarkLogic seems to have taken the approach of using lower-