How to compare two strings which having (á,í,ä) like characters in c#?
<p>I need to compare two strings in a word document i work it out for alphabetic and numeric values but it is not able to compare a string which contains some special characters like Máceres-Cartínez(á,í,ä) my code did not consider this occurance as a string.
        StreamWriter(fsf);</p>

<pre><code>    swt.WriteLine("Startred on :" + DateTime.Now.ToString("yyyy/MM/dd/hh/mm/ss") + "\n");

    swf.WriteLine("Startred on :" + DateTime.Now.ToString("yyyy/MM/dd/hh/mm/ss") + "\n");


    foreach (string strPara in strParaValue)

      {
          string[] strAuthorsPart = strPara.Split('.');

          string[] strAuthorslist = strAuthorsPart[0].Split(',');

          string[] strAuthor = strAuthorslist[0].Split(' ');

          if (strSplitValue[0].Contains(strAuthor[0].Trim()))

         {

             swt.WriteLine(strAuthor[0] + "\t");

         }

              else

         {

             swf.WriteLine(strAuthor[0] + "\t");

         }

              //foreach (string strAuthorName in strAuthorslist)

              //{

              //    string[] strAuthor = strAuthorName.Trim().Split(' ');

              //    if (strSplitValue[0].Contains(strAuthor[0]))

              //    {

              //        swt.WriteLine(strAuthor[0] + "\t");

              //    }

              //    else

              //    {



              //        swf.WriteLine(strAuthor[0] + "\t");

              //    }

              //}

              swt.WriteLine("\r\n");

              swf.WriteLine("\r\n");

              swt.Flush();

              swf.Flush();

          }
</code></pre>

<p>Please let me suggest on this regards.</p>

<p>DeeGo</p>
