Converting Microsoft Word Smart Quotes to Straight Quotes
<p>We have a program where the user needs to do a Copy-Paste of some content from Microsoft Word into a HTML editor (Visual Studio 2008).</p>

<p>That content in the HTML is then used in our confirmation emails.</p>

<p>Some of the characters like curly quotes turn into ? on the browser &amp; in our confirmation email.</p>

<p>For the browser... I was able to find how to resolve this issue by using jQuery.</p>

<p>But for the confirmation email I cannot use JavaScript.</p>

<p>I tried this ASP.net / C# code but it hasn't worked for me.</p>

<pre><code>if (s.IndexOf('\u201b') &gt; -1) s = s.Replace('\u201b', '\'');  
if (s.IndexOf('\u201c') &gt; -1) s = s.Replace('\u201c', '\"');  
if (s.IndexOf('\u201d') &gt; -1) s = s.Replace('\u201d', '\"');  
if (s.IndexOf('\u201e') &gt; -1) s = s.Replace('\u201e', '\"');  
</code></pre>

<p>I would appreciate any help in resolution.</p>

<p>Thanks.</p>

<hr>

<p>Thank you all for your responses.</p>

<p>I am using the StreamReader to read the HTML file containing the Word characters.</p>

<pre><code>string sFileText = "";  

StreamReader objReader = new StreamReader(sFilePath);  
sFileText = objReader.ReadToEnd();  
objReader.Close();  

return sFileText;  
</code></pre>
