You can try using xdmp:url-decode()
Example: let $write := ""write 𝘢(𝘹)/𝘣(𝘹))" return xdmp:url-decode($write) This will give the output as " write ?(?)/?(?) Thanks Pragya ________________________________ From: general-boun...@developer.marklogic.com <general-boun...@developer.marklogic.com> on behalf of thangella.vinodre...@cognizant.com <thangella.vinodre...@cognizant.com> Sent: Wednesday, October 5, 2016 3:53:16 PM To: general@developer.marklogic.com Subject: [MarkLogic Dev General] Issue with special charecters in MarkLogic Hi All, We are facing an issue with special characters involved in mathematical expressions such as " write ?(?)/?(?) in the form " which has italic characters (?(?)/?(?)). In MarkLogic these are stored as UTF-8 encoded values as "write 𝘢(𝘹)/𝘣(𝘹) in the form". In Java application When we are retrieving data from MarkLogic DB ,these special characters are being received as " write ?c(?^1)/??(?^1) in the form" . These are being corrupted by the time we received them in Java layer. We tried many options from Java side to receive content as UTF-8 encoded, but did not resolved the issue. Can anyone please suggest a way to resolve this kind of issues from MarkLogic side. Thanks, Vinod. This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored. "This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
_______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general