12
4

2 回答 2

13

U+200E and U+200F are not printable characters. They're both control characters which dictate how the text should be rendered - either left to right, or right to left.

You won't see these in the terminal, and they shouldn't be equivalent strings.

0x200E ^ 0x200F != 0

于 2012-09-23T01:00:21.247 回答
9

Because the character sequences are not identical. Just because it appears the same on the console does not mean the objects are identical.

于 2012-09-23T00:52:46.383 回答