Text / CSV – Read text files with ( NotePad ) ANSI encoding and non-English letters
My Project is C# Web Application.
– Use StreamReader to Read the whole Text / CSV File Content ( ReadToEnd() ).
– Then Use .CurrentEncoding.CodePage to get the File Encoding CodePage ( Integer ).
– Finally, the Text File Encoding can be defined by the Received Text File Code Page.
Sometimes, it would be Big5 / GB / Shift JIS Encoding. It is different from UTF8 / Unicode.
The Encoding and Code Page Details from Microsoft.
The Information System from an Organization would have
a few set of Language / Locale based on User’s Workstation / Application Server.
It is possible to handle only a few set of Code Page and Encoding from the ( CSV / Text Data Import ) Code Logic only.