Specify character encoding for search engines
Categories
(Firefox :: Search, enhancement, P5)
Tracking
()
People
(Reporter: andremonizbr, Unassigned)
References
(Blocks 2 open bugs)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Steps to reproduce:
- Enable *browser.urlbar.update2.engineAliasRefresh`
- Go to
about:preferences#search
and create a search shortcut forhttp://www2.trt12.gov.br/aurelio/pesquisa.asp?strTexto=%s
- Search for
ação
Actual results:
The search string isn't processed correctly because the site doesn't use Unicode.
Não foi encontrado o verbete ação.
Expected results:
There should be a way for users to specify what character encoding to use with custom search engines. Bookmark keywords allow this with the mozcharset
parameter:
http://www2.trt12.gov.br/aurelio/pesquisa.asp?strTexto=%s&mozcharset=iso-8859-1
Comment 1•2 years ago
|
||
In the future there should likely be a charset stored with the keyword, coming from the "Add keyword for this search" (and thus fetched from the page content itself at the time the keyword is created). The search service should likely have a charset defined for the custom engine.
What happens today is that bookmark keywords rely on History having a charset annotation for the page or on the mozcharset
param, though in most cases that param won't be there, first because it's not well documented, second because the user is likely creating a keyword by just right clicking on input fields and picking "Add keyword for this search".
Comment 2•2 years ago
|
||
Based on your comment can I mark the issue as New - Enhancement? Thank you.
Comment 3•2 years ago
|
||
Sure thing, let me do it.
Updated•2 years ago
|
Description
•