formating issue while reading ASCI file having special character in it
<p>I am using the code below to read a CSV file:</p>

<pre><code>TextReader tr = File.OpenText(path of the file);
</code></pre>

<p>This line of code is working when the CSV file does not contain any special character. However when the csv file contains any special character then the above line of code not able to read the special characters properly. when the file values with special characters are read and shown in the datagrid the characters appear as squares. </p>

<p>Now when I convert the file encoding to UTF-8 then it is working properly.</p>

<p>I have change the code like below to read the file with any encoding as below:</p>

<pre><code>StreamReader reader = new StreamReader(path of the file, System.Text.Encoding.UTF8, true);
</code></pre>

<p>But this line of code is also not working.</p>

<p>Do any one have any idea to deal with this issue? </p>
