We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to generate CSV file for other languages?

CSV stands for Comma Separated Values. Files that contain the .csv extension are comma delimited files which are very similar to plain text files.

To generate CSV files for other languages, XlsIO enables an UTF8 encoding option while saving the file. The following code snippets illustrates the behavior to generate a CSV file for the other languages.





Figure 1: Output CSV File


The sample to generate CSV file for other languages can be downloaded here.

The encoding options are enabled for better performance, which avoids encoding checks internally. Here, we recommend to use the below code snippet to achieve the requirement with other languages.

'Code to convert to other languages
worksheet.SaveAs("CSV_File", ",", System.Text.Encoding.UTF8);

'Code for ASCII values
worksheet.SaveAs("CSV_File", ",", System.Text.Encoding.ASCII);

'Code that performs internal encoding
worksheet.SaveAs("CSV_File", ",");

Article ID: Published Date: Last Revised Date: Platform: Control:
4232 03/03/2015 03/03/2015 WinForms XlsIO
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon