Answer the question
In order to leave comments, you need to log in
String comparison in C#?
Faced such task. For example. There is a "hello" line. It is necessary that the lines are considered the same, even if there are English letters in one line (a, e, etc.). InvariantCulture didn't help. Are there simple solutions?
Answer the question
In order to leave comments, you need to log in
Standard .NET tools will not be able to do this automatically. After all, the characters are different, even if they look similar.
A simple option is to first replace all English characters with similar Russian ones, and then compare the strings.
You need to translate the text into a picture, then either upload it to antigate (a service for captcha recognition), or use a text recognition engine (I recommend tesseract, there are examples with EmguCV - a wrapper for OpenCV in c#)
There is no standard solution. Either write a method to compare strings, or inherit from the String class and override the Equals method
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question