user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* Feature R/BUG: Auto uri_unescape() & utf8 handling
@ 2017-05-23 10:17 Ævar Arnfjörð Bjarmason
  2017-05-23 18:39 ` Eric Wong
  2017-05-23 18:43 ` Feature R/BUG: Auto uri_unescape() & utf8 handling Eric Wong
  0 siblings, 2 replies; 5+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2017-05-23 10:17 UTC (permalink / raw)
  To: meta

Feature request:

It would be neat to be able to right click on highlighted msgids in
the "what's cooking e-mails" in GMail and paste them into public
inbox, unfortunately Chrome copies this URL escaped, so you get e.g.:

https://public-inbox.org/git/?q=%3CCACBZZX4UUwzRQmyH8joYaqHnuVTjVtGBHp%252BiZKcnAnwoM_ZJhg%40mail.gmail.com%3E

Whereas that doesn't work because it's seacrhing for a URI escaped
msgid that contains + converted to %2B

Whereas unescaping it works:

https://public-inbox.org/git/?q=CACBZZX4UUwzRQmyH8joYaqHnuVTjVtGBHp%2BiZKcnAnwoM_ZJhg%40mail.gmail.com

I don't know if it breaks anything else but calling uri_unescape()
would work for these sort of msgids, but then of course searching for
%2b wouldn't work, hrm...

BUG:

The code is missing a utf8::decode() or equivalent somewhere, try
searching for: https://public-inbox.org/git/?q=%C3%86var

The search works, but the text in the search box is garbled, the
second search is https://public-inbox.org/git/?q=%C3%83%E2%80%A0var
third https://public-inbox.org/git/?q=%C3%83%C6%92%C3%A2%E2%82%AC%C2%A0var
etc.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-23 23:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-23 10:17 Feature R/BUG: Auto uri_unescape() & utf8 handling Ævar Arnfjörð Bjarmason
2017-05-23 18:39 ` Eric Wong
2017-05-23 22:02   ` [PATCH] www: do not mangle characters from search queries Eric Wong
2017-05-23 18:43 ` Feature R/BUG: Auto uri_unescape() & utf8 handling Eric Wong
2017-05-23 23:17   ` [PATCH] searchview: retry queries if uri_unescape-able Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).