Closed lymslive closed 2 years ago
Thank you for the PR. However, I do not want to merge PRs that introduce new dependencies. That will break too many existing users.
I also do not really understand what you are trying to do. Apparently, you have files in GBK and EUC-JP encoding and want to read these. According to Wikipedia, they consistent with the 7 bit ASCII values. This means that to the best of my understanding
int main(){
io::CSVReader<3> in("ram.csv");
in.read_header(io::ignore_extra_column, "vendor", "size", "speed");
char* encoded_vendor; int size; double speed;
while(in.read_row(encoded_vendor, size, speed)){
// vendor is GBK/EUC-JP encoded
std::string vendor = my_decode(encoded_vector);
}
}
should just work.