UTF-8 characters wrongly encoded as %u1234 in keyword search bookmark URL

NEW
Unassigned

Status

()

Firefox
Bookmarks & History
P3
normal
a year ago
a year ago

People

(Reporter: Smylers, Unassigned)

Tracking

51 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

a year ago
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Build ID: 20161017194958

Steps to reproduce:

Create a keyword search bookmark with a UTF-8 character in the search URL:

1 Go to Oxford Dictionaries: https://en.oxforddictionaries.com/

2 Right click in the ‘Type a word or phrase’ search box near the top right, and choose ‘Add a Keyword for this Search...’.

3 Add the keyword ‘od’ (or a different one if you're already using that) and note where you're saving the bookmark.

4 Try to use the keyword, searching for any word, such as ‘od feckless’.


Actual results:

I ended up at this URL, which is a blank page: https://en.oxforddictionaries.com/search?utf8=%u2713&filter=dictionary&query=feckless


Expected results:

That should've been this URL, which redirects to the expected search results page:
https://en.oxforddictionaries.com/search?utf8=✓&filter=dictionary&query=feckless

Or it would've worked with the ‘✓’ symbol encoded as UTF-8 bytes:
https://en.oxforddictionaries.com/search?utf8=%E2%9C%93&filter=dictionary&query=feckless

Find the bookmark, choose ‘Properties’, and see that its location is:
https://en.oxforddictionaries.com/search?utf8=%u2713&filter=dictionary&query=%s

The ‘✓’ symbol is represented by %u2713, which differs from the original URL, and isn't recognized as intended by the server. Editing that to be either the literal character or the %-encoded UTF-8 bytes fixes it and makes the keyword search function.

Note that simply bookmarking a page with a ‘✓’ in it (not as a keyword search), stores the URL accurately. For instance bookmark this page (with Ctrl+D):
https://en.wikipedia.org/w/index.php?title=✓&action=history
and see that its location is stored as:
https://en.wikipedia.org/w/index.php?title=%E2%9C%93&action=history
(Reporter)

Updated

a year ago
Component: Untriaged → Bookmarks & History
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.