未验证 提交 bf150d00 编写于 作者: PhoenixTree2013's avatar PhoenixTree2013 提交者: GitHub

add BOM mark to csv file(#550)

上级 7e0ee3ac
......@@ -161,6 +161,11 @@ retcode KeywordPIRClientTask::saveResult(
}
std::stringstream csv_output;
// write bom
uint8_t kBOM[] = {0xEF, 0xBB, 0xBF};
for (auto ch : kBOM) {
csv_output << ch;
}
for (size_t i = 0; i < orig_items.size(); i++) {
if (!intersection[i].found) {
VLOG(0) << "no match result found for query: [" << orig_items[i] << "]";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册