Menu

Read CSV File With Multiple Encodings

Shoaib

Aspose.Cells - Read CSV File With Multiple Encodings

//Set Multi Encoded Property to True
TxtLoadOptions options = new TxtLoadOptions();
options.setMultiEncoded(true);

//Load the CSV file into Workbook
Workbook workbook = new Workbook(dataPath + "MultiEncoded.csv", options);

//Save it in XLSX format
workbook.save(dataPath + "EncodedNewFile_Out.xlsx", SaveFormat.XLSX);

Download Source Code

Feedback and Suggestions

  • Many more examples are available at Aspose Docs.
  • Raise your queries and suggest more examples via Aspose Forums or via this social coding site.