Check the file's encoding is Shift-JIS (Encoding.GetEncoding(932)) in C#

1.2k Views Asked by At

I have a problem.

When a read csv file with CSVHelper in C#.

I want to get the encoding of the file and check if it is Shift-JIS (Encoding Japan) or not.

I researched a lot but couldn't find the answer.

Any help or ideas?

Thank a lot.

0

There are 0 best solutions below