Click here to Skip to main content
15,887,297 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
on portal data showing
CHRIS MORRIS˜

but after Exporting data into CSV It showing like
CHRIS MORRIS˜

apart from that if exporting into excel data exports as same as on portal.

Thanks in advance

What I have tried:

Using ExtJs 2.3 and C#.
What I have to do for export correct data as same as showing on portal.
Posted
Updated 25-Jul-18 21:35pm

1 solution

It depends on the character encoding used by your CSV generator and the tool used to display the CSV file content which - in your case - probably did not detect or support the encoding of the file.

The ANSI (Windows 1252) characters "˜" have the hex codes CB 9C which is the UTF-8 sequence for the ~ character (Unicode code point U+02DC).

So it looks like your CSV generator creates an UTF-8 encoded file (which is common) but your "tool" to view the file content assumes ANSI encoding.

There is nothing to do if everything is working as expected. To view the content correctly, open the file with an editor that is able to detect the UTF-8 encoding or provides an option to specify the encoding. An example is the Notepad++ editor (that is not the Windows Notepad).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900