0

I want to implement a search function to my program, using the stream reader, I am reading in a text document with accented letters, but I need it to ignore the accented letters and upper/lower case, I know I can convert to upper or lower but my problem is the accented letters e.g "Clémentine" = "clementine".

is there any quick way to ignore such characters?

Camilo Terevinto
  • 31,141
  • 6
  • 88
  • 120
  • Can you add your current code so that's easier for us to help you? – Camilo Terevinto Apr 29 '18 at 18:13
  • 7
    Possible duplicate of [How do I remove diacritics (accents) from a string in .NET?](https://stackoverflow.com/questions/249087/how-do-i-remove-diacritics-accents-from-a-string-in-net) – adjan Apr 29 '18 at 18:14
  • See the duplicate question solutions (2 are working pretty good). Add a `.ToLower()` to the extension method and you're good to go. – Jimi Apr 29 '18 at 18:31
  • sorry guys this is what I am using currently for this method https://imgur.com/gallery/RfRJArz – Levi Regan Apr 29 '18 at 23:16
  • Have you tried the code Adrian linked (the accepted answer and the one below, mostly)? Also, if you want someone to be able to test some other solutions (if those linked are not working for you), you should post a list of test cases, since not everyone can type those symbols. An image does not help. – Jimi Apr 30 '18 at 00:09

0 Answers0