Can't search for strings containing encoded characters like \u0027 (apostrophe) #603

Closed
TheoChevalier opened this Issue Feb 1, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@TheoChevalier
Member

TheoChevalier commented Feb 1, 2016

In some Android files for instance, we can't use apostrophes, so we're encoding them this way \u0027 in the translations.
This query should return results, but currently it doesn't: https://transvision.mozfr.org/?recherche=%C3%89cran+d\u0027accueil&repo=aurora&sourcelocale=en-US&locale=fr&search_type=strings

Another place where we're using such characters: https://transvision.mozfr.org/?recherche=remotetabs-panelmenu.label&repo=aurora&sourcelocale=en-US&locale=fr&search_type=entities#browser_chrome_browser_customizableui_customizableWidgets.properties_remotetabs-panelmenu.label
\u00AD is a special character that prevents hyphenation.

The Transvision bug is that the backslash character doesn't get escaped, this query works (notice the "\"):

https://transvision.mozfr.org/?recherche=Onglets+\\u00ADsynchronis%C3%A9s&repo=aurora&sourcelocale=en-US&locale=fr&search_type=strings

@TheoChevalier

This comment has been minimized.

Show comment
Hide comment
@TheoChevalier

TheoChevalier Feb 8, 2016

Member

Side note: I replaced \u0027 with curly quotes in French on central channel, but you can still see the issue with \u00AD or on other channels.

Member

TheoChevalier commented Feb 8, 2016

Side note: I replaced \u0027 with curly quotes in French on central channel, but you can still see the issue with \u00AD or on other channels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment