[MarkLogic Dev General] Is xdml:unquote appropriate for handling accent characters?

Jason Hunter Jason.Hunter at marklogic.com
Thu Feb 9 13:19:42 PST 2017


The downstream client that can't understand unicode isn't being xml compliant. Any legit xml processor can handle unicode. Just make sure your encoding declaration is proper.

That said, you have some control:

[image1.PNG]

Sent from my iPhone

On Feb 9, 2017, at 15:54, Kari Cowan <KCowan at alm.com<mailto:KCowan at alm.com>> wrote:

Well sure.  To be clear, we started with é on cms our editors use – and then we exported that to ML having changed it to &eacute; (which I presume we did so the our content loader wouldn’t choke on it).  That’s perfect for most re-use scenarios.  I am then taking that however, and pulling it back to use it in an RSS/XML feed and ML returns it as é again – which will give the xml readers a minor stroke.  IF there was an option to return such characters in original stored read (&eacute;, in my example) – I would take it.  Getting it as the /text() element doesn’t quite cut it for this use but I can work around it for my own purposes.

From: <general-bounces at developer.marklogic.com<mailto:general-bounces at developer.marklogic.com>> on behalf of Christopher Hamlin <cbhamlin at gmail.com<mailto:cbhamlin at gmail.com>>
Reply-To: MarkLogic <general at developer.marklogic.com<mailto:general at developer.marklogic.com>>
Date: Thursday, February 9, 2017 at 11:49 AM
To: MarkLogic <general at developer.marklogic.com<mailto:general at developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Is xdml:unquote appropriate for handling accent characters?

If the XML is OK (as XML), then it sounds like something downstream.  Either something funky expected in quoted-meta-whatever content or a bad reader?  I don't know RSS, but I thought there would be no problems these days with UTF-8 in either XML or even HTML pages.







_______________________________________________
General mailing list
General at developer.marklogic.com<mailto:General at developer.marklogic.com>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20170209/6b58b0f8/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image1.PNG
Type: image/png
Size: 217582 bytes
Desc: image1.PNG
Url : http://developer.marklogic.com/pipermail/general/attachments/20170209/6b58b0f8/attachment-0001.png 


More information about the General mailing list