Re: [MarkLogic Dev General] Regarding encoding in Marklogic

2017-04-26 Thread Florent Georges
Hi,

What do you mean by "after save the name appears as"?  99% of the time in
similar cases, the diagnostic is wrong.  It is rather that the method used
to display the file does not display it as UTF-8, but the file itself is
correct.

Regards,

-- 
Florent Georges
H2O Consulting
http://h2o.consulting/


On 26 April 2017 at 13:46, Mani, Sivasubramani (ELS) wrote:

> Hi Shabana Khan,
>
>
>
> Thank you for your response, I have provided my code below
>
>
>
> *let $filename := concat(“ /loginsummary.csv")*
>
> *let $save := xdmp:save($filename,text{
> string-join(concat($user/us:personalInfo/us:firstName/text(),"
> ",$user/us:personalInfo/us:lastName/text()),"") },*
>
> *  *
>
> *  utf-8*
>
> *  )*
>
> *return ()* .
>
>
>
> while I run it in query console without xdmp:save the name appears as *M’hamed
> el Aisati* and after save the name appears as *M’hamed el Aisati*.
> kindly do the need full.
>
>
>
>
>
> Thanks & Regards,
>
> Siva
>
>
>
>
>
>
>
> *From:* shabana khan [mailto:shabana.0...@gmail.com]
> *Sent:* Wednesday, April 26, 2017 12:31 PM
> *To:* MarkLogic Developer Discussion
> *Cc:* ConSyn-Infosys-Support
> *Subject:* Re: [MarkLogic Dev General] Regarding encoding in Marklogic
>
>
>
>  External email: use caution 
>
>
>
> Hi Mani,
>
>
>
> It works correctly for me.
>
> The junk letters show up if the encoding is not utf-8, for ANSI encoding
> it shows these junk characters.
>
> Could you share some more details of your problem.
>
>
> Thanks and Regards,
>
> Shabana Khan
>
> LinkedIn 
>
>
>
>
>
>
>
>
>
> On Wed, Apr 26, 2017 at 4:48 PM, Mani, Sivasubramani (ELS) <
> s.m...@elsevier.com> wrote:
>
> Hi Team,
>
>
>
> I saved the node value “*M’hamed el Aisati*”  using xdmp:save() after
> that while open the file it shows some junk letters instead of  “*M’hamed
> el Aisati*” , even I use utf-8 encode option in the xdmp:save.
>
> Kindly do the needful.
>
>
>
> Thanks & Regards,
>
> Siva
>
>
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
> --
> 
> Florent Georges
> 
> http://fgeorges.org/
> http://h2o.consulting/ - New website!
>
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Regarding encoding in Marklogic

2017-04-26 Thread Mani, Sivasubramani (ELS)
Hi Shabana Khan,

Thank you for your response, I have provided my code below

let $filename := concat(“ /loginsummary.csv")
let $save := xdmp:save($filename,text{ 
string-join(concat($user/us:personalInfo/us:firstName/text()," 
",$user/us:personalInfo/us:lastName/text()),"") },
  
  utf-8
  )
return () .

while I run it in query console without xdmp:save the name appears as M’hamed 
el Aisati and after save the name appears as M’hamed el Aisati. kindly do the 
need full.


Thanks & Regards,
Siva



From: shabana khan [mailto:shabana.0...@gmail.com]
Sent: Wednesday, April 26, 2017 12:31 PM
To: MarkLogic Developer Discussion
Cc: ConSyn-Infosys-Support
Subject: Re: [MarkLogic Dev General] Regarding encoding in Marklogic


*** External email: use caution ***


Hi Mani,

It works correctly for me.
The junk letters show up if the encoding is not utf-8, for ANSI encoding it 
shows these junk characters.
Could you share some more details of your problem.

Thanks and Regards,
Shabana Khan
LinkedIn




On Wed, Apr 26, 2017 at 4:48 PM, Mani, Sivasubramani (ELS) 
> wrote:
Hi Team,

I saved the node value “M’hamed el Aisati”  using xdmp:save() after that while 
open the file it shows some junk letters instead of  “M’hamed el Aisati” , 
even I use utf-8 encode option in the xdmp:save.
Kindly do the needful.

Thanks & Regards,
Siva


___
General mailing list
General@developer.marklogic.com
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Regarding encoding in Marklogic

2017-04-26 Thread shabana khan
Hi Mani,

It works correctly for me.
The junk letters show up if the encoding is not utf-8, for ANSI encoding it
shows these junk characters.
Could you share some more details of your problem.

Thanks and Regards,
Shabana Khan
LinkedIn 




On Wed, Apr 26, 2017 at 4:48 PM, Mani, Sivasubramani (ELS) <
s.m...@elsevier.com> wrote:

> Hi Team,
>
>
>
> I saved the node value “*M’hamed el Aisati*”  using xdmp:save() after
> that while open the file it shows some junk letters instead of  “*M’hamed
> el Aisati*” , even I use utf-8 encode option in the xdmp:save.
>
> Kindly do the needful.
>
>
>
> Thanks & Regards,
>
> Siva
>
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Regarding encoding in Marklogic

2017-04-26 Thread Mani, Sivasubramani (ELS)
Hi Team,

I saved the node value “M’hamed el Aisati”  using xdmp:save() after that while 
open the file it shows some junk letters instead of  “M’hamed el Aisati” , 
even I use utf-8 encode option in the xdmp:save.
Kindly do the needful.

Thanks & Regards,
Siva

___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general