Loading TOC...

MarkLogic 12 EA 2 Product Documentation
fn.codepointsToString

fn.codepointsToString(
   arg as Number[]
) as String

Summary

Creates an xs:string from a sequence of Unicode code points. Returns the zero-length string if $arg is the empty sequence. If any of the code points in $arg is not a legal XML character, an error is raised.

Parameters
arg A sequence of Unicode code points.

Example

fn.codepointsToString(
  [104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100]);
=> hello world

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