Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Buge
· 9y ago · 0 comments
Interesting that he used a non-ascii character (Ø) as a variable name. Also ctrl+f in Chrome seems to think this character is the same as o.
Comments
[–]
niwri
9y ago
I wouldn't be surprised if that behaviour was intentional.
[–]
johnfn
9y ago
It is intentional. It allows a search for "pokemon" to match "Pokémon".
[–]
x3n0ph3n3
9y ago
It's done with case-insensitive matching based on the rules of character collation [1], but I'm struggling to find a good article on the topic.
1.
https://en.wikipedia.org/wiki/Collation
[–]
Pyppe
9y ago
Transliteration. See e.g.
https://en.m.wikipedia.org/wiki/Transliteration