Hello Everyone,
Any one can help me to solve this issue...?
I have One Perspective View where I can enter all the details to create the work order. Once I create the Order, the data will be saved into the database. Each work order data I have, the Column Name is like Remarks which is having the description about the work order purpose. That description is sometimes entered with chinese characters.
Another view, I have the Table Component, which is used to view the list of work orders that is created by the users. On the same page, I have the Export button to export the data to CSV format. That is also working quite well.
But my problem is if I have the chinese description of my work order data, which is showing as special characters, when I open the CSV file using EXCEL.
Now I want to export the CSV file with UTF-8 format. Here I mention the Script which I used to export the data to CSV for your reference.
Here myData is my Table Data
ds = system.dataset.toDataSet( header , myData )
dataset = ds
data = system.dataset.toCSV(dataset, 1, 0, 0)
Filename = 'Exportdata.csv'
system.perspective.download(Filename, data)
If I open the downloaded file using excel, chinese characters showing as special characters.
this is how its showing in excel.
but in my data set those values are in unicode format
for example : \u8c22\u8c22 - this is how my data in my dataset.
It has to shown as 谢谢 in my excel.
but its not showing as it is. What to do in this situation. How can I export the CSV with utf-8 format.
Also I tried with below condition
system.perspective.download(Filename, data,"charset=utf-8")
But Couldn't.
Kindly help me to solve this.
Thanks in advance.