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())," ") },* > > * <options xmlns="xdmp:save">* > > * <output-encoding>utf-8</output-encoding>* > > * </options>)* > > *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 <https://in.linkedin.com/pub/shabana-khan/40/229/454> > > > > > > > > > > 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 > > -- > <http://developer.marklogic.com/mailman/listinfo/general> > Florent Georges > <http://developer.marklogic.com/mailman/listinfo/general> > 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