Hi Abhishek,
The encoding option is not to specify a target encoding for conversion, but to specify the encoding of the file you try to download. So, you should figure out which encoding file-location.txt itself has, and just specify that.. Kind regards, Geert *Van:* general-boun...@developer.marklogic.com [mailto: general-boun...@developer.marklogic.com] *Namens *Abhishek53 S *Verzonden:* maandag 25 juni 2012 14:51 *Aan:* MarkLogic Developer Discussion *Onderwerp:* [MarkLogic Dev General] UTF -8 Encoding Exception Hi Folks, I am having issue in downloading non UTF 8 encoded text file from file server. I am using http-get method to download text files and then updating the text inside XML documents. How to convert non UTF 8 to UTF 8 encoded? Sample Code xdmp:http-get("file-location.txt", <options xmlns="xdmp:document-get"> <encoding>utf-8</encoding> </options> ) Exception: XDMP-DOCUTF8SEQ: -- document is not UTF-8 encoded Please let me know your suggestion Thanks Abhishek Srivastav Systems Engineer Tata Consultancy Services Cell:- +91-9883389968 Mailto: abhishek5...@tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
_______________________________________________ General mailing list General@developer.marklogic.com http://community.marklogic.com/mailman/listinfo/general