Dan Jacobson <[EMAIL PROTECTED]> writes:

> AMB> By not decoding the URL you get a set of hex characters that matches
> AMB> exactly what would appear in the URL bar of your browser.
> 
> But what about lynx and w3m? The user can only see the % stuff there, no?

I don't see that there should be a difference here for these browsers.

If you do a Google search for "wwwoffle" (with the quotes as part of
the search) then you get sent to the following URL (details vary, but
this is what I get):

http://www.google.co.uk/search?q=%22wwwoffle%22&hl=en&ie=ISO-8859-1&sa=Search+Google&meta=

The quote characters from the search string show up as %22 in the
URL.  When WWWOFFLE displays a URL on a web page it normally decodes
the URL to make it look pretty.  This means that the URL shows up on
the page as:

http://www.google.co.uk/search?q="wwwoffle"&hl=en&ie=ISO-8859-1&sa=Search+Google&meta=

By not decoding the URL the web page would show exactly the same as
the first URL above, the one with the %22 in it.  This will show up
exactly the same in all web browsers.

What you are having a problem with is URLs where the text of the
search string (for example) is not ASCII text like "wwwoffle" in the
example, but is UTF-8 text.  When WWWOFFLE decodes the URL to display
it you get the correct characters only if the page has the correct
(i.e. UTF-8) charset.  Different browsers work differently in this
case, but if WWWOFFLE didn't decode the URL then all browsers would
work the same and you would see lots of %XX character strings.


> AMB> The pages that need charsets already have one assigned by their
> AMB> author.  I cannot override that with a user option or it would break
> AMB> those pages.
> 
> I am only talking about WWWOFFLE's own http://localhost:8080/index/*

So am I, these pages already have a charset defined (if you are using
the Polish or Russian translated versions).

-- 
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop                             [EMAIL PROTECTED]
                                      http://www.gedanken.demon.co.uk/

WWWOFFLE users page:
        http://www.gedanken.demon.co.uk/wwwoffle/version-2.9/user.html

Reply via email to