Read UNIX encoded file with C# Read UNIX encoded file with C# unix unix

Read UNIX encoded file with C#


you have to get the proper encoding format. try

use file -i. That will output MIME-type information for the file, which will also include the character-set encoding. I found a man-page for it, too :)

Or try enca

It can guess and even convert between encodings. Just look at the man page.

If you have the proper encoding format, look for a way to apply it to your file reading.

Quotes: How to find encoding of a file in Unix via script(s)