Home > front end >  Error in exporting other language text as ???? in tally data
Error in exporting other language text as ???? in tally data

Time:08-13

While exporting tally data from tally it is supports Multi language texts but while execute xml file from other source like cmd or postman request the Other language texts are return like ???? symbols

My code is

<?xml version="1.0" encoding="UTF-8"?>
  <ENVELOPE>
  <HEADER>
   <TALLYREQUEST>ExportData</TALLYREQUEST>
   </HEADER>
   <BODY>
   <EXPORTDATA>
   <REQUESTDESC>
   <REPORTNAME>TNetSA LedgerSalesorders</REPORTNAME>
   <STATICVARIABLES>
   <SVCURRENTCOMPANY>${companyName}</SVCURRENTCOMPANY>                                          
   <SVFROMDATE>${fromDate}</SVFROMDATE>
   <SVTODATE>${toDate}</SVTODATE>
   <SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>  
   </STATICVARIABLES>
   </REQUESTDESC>
   </EXPORTDATA>
   </BODY>
   </ENVELOPE>

Post request UTF-8

Header=> Content-Type:application/xml; charset=utf-8

Postman without encoding

Sending UTF-16 encoded request from postman

Save the xml you are sending in xml in text file and while saving use encoding utf-16 Xml save with encoding

Configuring Postman

In postman under body tab select binary tab and select file you saved in earlier step

In headers tab

Add new Header

Key - Content-Type Value - application/xml; charset=utf-16

postman result

  • Related