I have for example
string str ='Γpple'; string strNew=""; char[] A = {'Γ','Γ','Γ','Γ'}; char[] a = {'Γ ','Γ‘','Γ’','Γ€'};
I want to browse the page and see if it finds a replacement for the Ascii 'A' code. Thus, the result should be:
strNew = 'Apple';
Here is my code:
for (int i = 0; i < str.Length; i++) { if(str[i].CompareTo(A)) strNew += 'A' else if(str[i].CompareTo(a)) strNew +='a' else strNew += str[i]; }
But the comparison function does not work, so what other function can I use?
source share