I am encountering a strange issue while comparing two strings. Here is my code:
console.log(x == y);
console.log("'" + x + "'=='" + y + "'");
console.log(typeof(x));
console.log(typeof(y));
In the console, I have :
false 
'1Ä4±'=='1Ä4±' 
string
string
I guess my strings contain strange characters, so how should I compare them?
I read Javascript string comparison fails when comparing unicode characters but in my case, x and y come from the same source and have the same encoding.
 
     
     
     
    