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 backwards.
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.
Interesting that you can do this if you put all those url parameters in. But the default google search won't get you these backwards results. if you go to google.com and enter "swen rekcah", you won't get these results.
Also, the url contains &q=%E2%80%AEhacker%20news& which is not hacker news backwards.
Not 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].
28 comments
[ 2.5 ms ] story [ 63.4 ms ] threadApparently 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 backwards.
https://www.google.com/search?sourceid=chrome&ie=UTF-8...
https://www.google.com/search?sourceid=chrome&ie=UTF-8...
Try some other celebrity
https://www.google.com/search?q=height+of+empire+state+build...
https://www.google.com/search?q=length+of+titanic
sdrowkcab hcraes nac elgooG
egap siht etalsnarT
tnahC aykanahC
lortnoc txet lanoitceridiB
weiver koob a
yhw nosaer yna
All I get are results from elgoog.rb-hosting.de or none at times!
Also, the url contains &q=%E2%80%AEhacker%20news& which is not hacker news backwards.
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,
(Google the hebrew text to decode to English. :-) )