Hi, Simón:

Does it help if you specify a contentType property of "text/html; 
charset=windows-1252"
on the document descriptor when passing in the document?


Hoping that's useful,


Erik Hennum



________________________________________
From: general-boun...@developer.marklogic.com 
<general-boun...@developer.marklogic.com> on behalf of Simón Carbajal 
<simoncarba...@gmail.com>
Sent: Friday, April 27, 2018 9:58:10 AM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Loading a text doc into the database

Hi,

I'm trying to upload a "text/html" document with the Node.js client API but the 
document is encoded as "windows 1252" and not utf-8 as required, this is 
causing the following error:

"XDMP-DOCUTF8SEQ: Invalid UTF-8 escape sequence at  line 39 -- document is not 
UTF-8 encoded"

Is there a way to solve this with Marklogic? or I need to do the conversion 
myself in Nodejs?

Thanks in advance!
Simon
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to