Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
TheoChevalier opened this issue Feb 1, 2016 · 1 comment
Labels

Comments

@TheoChevalier
Copy link
Member

@TheoChevalier 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
Copy link
Member Author

@TheoChevalier 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.

pascalchevrel added a commit that referenced this issue Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.