Skip to content

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

Closed
@TheoChevalier

Description

@TheoChevalier

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions