I'm using a bookmarklet to send the selected text to the translator
via '#en|es|...'
This works if the text is unescaped (i.e. accented characters are
placed in the URL)  but fails if they have been converted to their
escaped form:

This works fine:
http://translate.google.com/#es|en|Los%2050%20años%20de%20la%20creación%20del%20Ministerio%20de%20Relaciones%20Exteriores%20de%20Cuba

This does not:
http://translate.google.com/#es|en|Los%2050%20a%F1os%20de%20la%20creaci%F3n%20del%20Ministerio%20de%20Relaciones%20Exteriores%20de%20Cuba

I'm using javascript's window.open('http://translate.google.com/#es|
en|'+window.getSelection()) to do this, and have tried putting unescape
() in various places but no joy... it always gets escaped.

So, 2 things:
1 - Is there a reason why escaped (accented) characters are not
welcome in the URL (I notice spaces work fine..)
2 - Is there a way to force the URL to be unencoded (I'm on OS X with
Safari)...

Many thanks!

Reply via email to