Thank you very much Erik!! This worked!

On 27 April 2018 at 17:25, Erik Hennum <[email protected]> wrote:

> 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: [email protected] <general-bounces@developer.
> marklogic.com> on behalf of Simón Carbajal <[email protected]>
> Sent: Friday, April 27, 2018 9:58:10 AM
> To: [email protected]
> 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
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to