My post below asked what the curly quotation marks were and why my app wouldn\'t work with them, my question now is how can I replace them when my program comes across them,
When I encountered this problem I wrote an extension method to the String class in C#.
public static class StringExtensions
{
public static string StripIncompatableQuotes(this string s)
{
if (!string.IsNullOrEmpty(s))
return s.Replace('\u2018', '\'').Replace('\u2019', '\'').Replace('\u201c', '\"').Replace('\u201d', '\"');
else
return s;
}
}
This simply replaces the silly 'smart quotes' with normal quotes.
[EDIT] Fixed to also support replacement of 'double smart quotes'.