csv-parser
csv-parser copied to clipboard
Implement ReadUtf8_BOM method
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);
Related ticket: https://github.com/AriaFallah/csv-parser/issues/22