This is a trick with Unicode RTL. The search query in the URL contains the character U+202E RIGHT-TO-LEFT OVERRIDE, followed by the searched-for text in normal (nonreversed) order. Apparently Google ignores this character when searching for matches (so the matches are displayed normally), but the character appears when the query is reproduced in the search box at top of the screen, so the search string appears backwa…
This character is interesting, one more thing to watch out for in user-provided input. You do your homework and escape HTML in users' comments but if you don't escape the RTL overrides, their effects can "bleed" to other parts of the page, rendering it unreadable or at least hard to read.
Google can search backwards
21–29 of 29 posts
Re: Google can search backwards
#22Not only that, Google also does keyboard-layout mapping if you forgot to switch your keyboard layout before searching. For example, if I want to search in Hebrew for "חיפוש בעברית" but accidentally typed in English and typed "jhpua gchcr," (same keys as the Hebrew chars) - I'll still get the results I was looking for [1]. [1] - https://www.google.com/search?q=jhpua%20cgcrh ,
Re: Google can search backwards
#23But did you guys know you can search a height of a celebrity? https://www.google.com/search?sourceid=chrome&ie=UTF-8&#... https://www.google.com/search?sourceid=chrome&ie=UTF-8&#... Try some other celebrity
Re: Google can search backwards
#24This is a trick with Unicode RTL. The search query in the URL contains the character U+202E RIGHT-TO-LEFT OVERRIDE, followed by the searched-for text in normal (nonreversed) order. Apparently Google ignores this character when searching for matches (so the matches are displayed normally), but the character appears when the query is reproduced in the search box at top of the screen, so the search string appears backwa…
Interesting character. You can copy & paste it in front of any text in an editable field and the text immediately flips.
Re: Google can search backwards
#25But did you guys know you can search a height of a celebrity? https://www.google.com/search?sourceid=chrome&ie=UTF-8&#... https://www.google.com/search?sourceid=chrome&ie=UTF-8&#... Try some other celebrity
However, it seems to show its results only in inches and feet though.
Re: Google can search backwards
#26Re: Google can search backwards
#27This is a trick with Unicode RTL. The search query in the URL contains the character U+202E RIGHT-TO-LEFT OVERRIDE, followed by the searched-for text in normal (nonreversed) order. Apparently Google ignores this character when searching for matches (so the matches are displayed normally), but the character appears when the query is reproduced in the search box at top of the screen, so the search string appears backwa…
Re: Google can search backwards
#28Not only that, Google also does keyboard-layout mapping if you forgot to switch your keyboard layout before searching. For example, if I want to search in Hebrew for "חיפוש בעברית" but accidentally typed in English and typed "jhpua gchcr," (same keys as the Hebrew chars) - I'll still get the results I was looking for [1]. [1] - https://www.google.com/search?q=jhpua%20cgcrh ,
If I remember correctly from one talk, it does this by remembering how users correct themselves.
(Google the hebrew text to decode to English. :-) )
Re: Google can search backwards
#29they might have just index that phrase backwards. if you were to search for "hacker news" backwards, you get nothing related. http://www.google.com/search?gcx=w&sourceid=chrome&i...
http://www.google.com/#sclient=psy-ab&hl=en&safe=off...
Also, the url contains &q=%E2%80%AEhacker%20news& which is not hacker news backwards.