DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Wish: UTF-8 and URL encoding  (Read 3,855 times)

Jesper Hertel

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 103
Wish: UTF-8 and URL encoding
« on: September 01, 2011, 05:11 PM »
You can use $$u1 and $$uc in place of $$1 and $$c to have FARR perform urlencoding on the arguments, making them suitable for web searches. (Direct quote from the help file ;)).

As a Dane using special non-ascii letters very often, this is very cool and I use it a lot! :Thmbsup:

But now I wanted to create an alias to search my Gmail. This takes a URL of the form
    https://mail.google.com/mail/?shva=1#search/my+search+terms+in+utf-8
where my+search+terms+in+utf-8 is in URL encoded UTF-8 format. And it is the UTF-8 that is the problem.


If I just use ordinary $$u1 like this in my alias:
    https://mail.google.com/mail/?shva=1#search/$$u1
and use the alias to search for "særlige ønsker", I get
    https://mail.google.com/mail/?shva=1#search/s%e6rlige+%f8nsker
but then Gmail gets stuck loading and I get an almost blank screen. The functioning URL is
    https://mail.google.com/mail/?shva=1#search/s%C3%A6rlige+%C3%B8nsker
which brings the correct search result.


So I miss being able to tell FARR to URL encode the UTF-8 encoded equivalent of the search string.

Would it be possible to add something like $$uu1, $$uu2, ..., $$uuc to perform URL encoding of the UTF-8 encoded string?

Original address: https://www.donationcoder.com/forum/index.php?topic=27831.0