I try to compare 2 Chinese phrases and the function always returns false. I am confused.
Printable View
I try to compare 2 Chinese phrases and the function always returns false. I am confused.
O man, it sucks when that happens... I know how you feel.
The first article in my signature will definitely help you with this.
gg
If you are comparing two phrases, isn't false always the correct result?
Make sure the phrases really are identical, I suppose.
And you may need to do normalization (eg, make sure you aren't using a variant of the same character with a different unicode value). ICU contains a method to do this.