[MarkLogic Dev General] xdmp:base64Decode returns invalid UTF-8 escape sequence
Michael Blakeley
mike at blakeley.com
Wed Jun 6 13:37:34 PDT 2012
That function only works with encoded strings, and I think they have to be UTF-8 as well. But try this trick:
binary { xs:hexBinary(xs:base64Binary('JxrHeSl2YX4LunZkWKZqog=='))
-- Mike
On 6 Jun 2012, at 13:25 , Steve Spigarelli wrote:
> How do I tell this code that I don't want it to be UTF-8 encoded?
>
> xquery version "1.0-ml";
>
> xdmp:base64-decode('JxrHeSl2YX4LunZkWKZqog==')
More information about the General
mailing list