This is a migrated thread and some comments may be shown as answers.
Encoding when importing with CsvFormatProvider
1 Answer 6 Views
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 17 Dec 2020, 10:48 AM

Hi

In the documentation for CsvFormatProvider (https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/formats-and-conversion/csv/settings) it is decribed that you can use Settings.Encoding to set the encoding when exporting.

How does it work when importing a file? Does CsvFormatProvider automatically detect the encoding of the provided file? Or do I need to ensure that files that I import always have a certain encoding?

 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Accepted
Tanya
Telerik team
answered on 18 Dec 2020, 02:07 PM

Hi Daniel,

When importing, CsvFormatProvider uses the encoding that is specified in the Settings. If the Encoding property is not set by the user, UTF8 with BOM is used as the encoding used by default in MS Excel. 

I have also updated the documentation about the Encoding property to include the information about the import scenario as well.

Please, let us know if you have any further questions.

Regards,
Tanya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Asked by
Daniel
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or