I'm not sure how you know what the saved version looks like in MarkLogic.

But seeing as how you are using Plane-1 characters, I think you will need
to check each step carefully to understand what's going wrong.  I did a
couple simple (non-Java) checks and didn't see a problem with such text in
MarkLogic.



On Wed, Oct 5, 2016 at 8:50 AM, Erik Hennum <[email protected]>
wrote:

> Hi, Vinod:
>
> If you read the character stream as UTF-8 in Java, you shouldn't need to
> do anything special on either the client or server.
>
> Are you using the MarkLogic Java Client API?  The Java API knows the
> server encodes as UTF-8 and defaults to reading as UTF-8.
>
> The only other question that occurs to me is whether the code that's
> writing the content might be double encoding.
>
>
> Hoping that helps,
>
>
> Erik Hennum
>
>
> ------------------------------
> *From:* [email protected] [
> [email protected]] on behalf of
> [email protected] [[email protected]]
> *Sent:* Wednesday, October 05, 2016 3:23 AM
> *To:* [email protected]
> *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
> &#x01d622;(&#x01d639;)/&#x01d623;(&#x01d639;) in the form*”. In Java
> application When we are retrieving data from MarkLogic DB ,these special
> characters are being received  as “ *write **ݘ¢(**ݘ¹)/**ݘ£(**ݘ¹) 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.
>
> _______________________________________________
> 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