csv-parser icon indicating copy to clipboard operation
csv-parser copied to clipboard

Implement ReadUtf8_BOM method

Open ajtruckle opened this issue 1 year ago • 1 comments

Call this static method to detect the UTF8 BOM and skip it. Call it on the stream before using CsvParser.

Example usage:

std::ifstream isInfoDB(pathInfoDB);
if (!aria::csv::CsvParser::ReadUtf8_BOM(isInfoDB))
{
	AfxMessageBox(L"The file needs to be UTF8 BOM encoded.", MB_OK | MB_ICONERROR);
	return;
}

aria::csv::CsvParser parser(isInfoDB);

ajtruckle avatar Mar 31 '24 11:03 ajtruckle

Related ticket: https://github.com/AriaFallah/csv-parser/issues/22

ajtruckle avatar Mar 31 '24 11:03 ajtruckle