Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.misc > #6669
| Date | 2012-09-24 07:38 +0100 |
|---|---|
| From | Matthew Phillips <spam2011m@yahoo.co.uk> |
| Newsgroups | comp.sys.acorn.misc |
| Subject | Re: Local browsing |
| Message-ID | <fa5519d452.Matthew@sinenomine.freeserve.co.uk> (permalink) |
| References | <na.9e67bb52c9.a806e0tennant@orpheusmail.co.uk> <785386c952.graham@durain.demon.co.uk> <na.f8edb552c9.a806e0tennant@orpheusmail.co.uk> <26458ed252.Matthew@sinenomine.freeserve.co.uk> <na.8a3fbe52d3.a806e0tennant@orpheusmail.co.uk> |
In message <na.8a3fbe52d3.a806e0tennant@orpheusmail.co.uk> on 22 Sep 2012 Tennant Stuart wrote: > In article <26458ed252.Matthew@sinenomine.freeserve.co.uk>, > Matthew Phillips <spam2011m@yahoo.co.uk> wrote: > > > By going to file:///RAM::RamDisc0/%24/ I was show the view of the root > > directory. When hovering over the directory "test" I could see the URL > > was file:///RAM%3A%3ARamDisc0.%24/test and I was rather disconcerted by > > the full stop before the %24, but clicking took me through OK. > > Yeah, but clicking through the filing system isn't what we're trying to do. You did not make that clear: I now see where your problem is. > > The file name was shown correctly with the e-grave, and hovering the URL > > is file:///RAM%3A%3ARamDisc0.%24/test/Text2%EA which is the correct > > encoding. > > > Clicking on it loaded and displayed the file. > > I have duplicated your test, and created a HTML with these two links... > > <li><a href="file:///RAM::RamDisc0/$/test">Go to directory</a> > <li><a href="file:///RAM::RamDisc0/$/test/Text2è">Go through to html</a> > > Hovering "Go to directory" shows file:///RAM::RamDisc0/$/test and clicking > on it displays the directory, then clicking on Text2è displays the html. > > Hovering "Go through to html" shows > file:///RAM::RamDisc0/$/test/Text2%C3%A8 and clicking gives the message > "Not found error 404 while fetching file". > > It's that second, more realistic test which you didn't try. All this is of > course with NetSurf 2.9, and performing a *Alphabet returns "Latin1". Well, I'm afraid that's not exactly "more realistic". If you put a URL in an HTML document then *you* are responsible for writing it correctly for the browser to use, to encode the characters for transmission to the server. So your HTML is incorrect and should be <li><a href="file:///RAM::RamDisc0/$/test/Text2%EA">Go through to html</a> Browsers vary as to how much they handle conversion of characters which should not be present in links. Did you inform NetSurf which character set was in use in the HTML file by using the correct meta tag attributes in the head of the file, or by serving it from a web server which gave the character set in the HTTP response? And if you're expecting it to cope with the bullet, when the default character set for HTML documents is ISO Latin 1, which does not have a bullet character, think again! That's certainly going to be a low priority for the developers. If you are writing the HTML yourself, and have control over the encoding of top-bit-set characters, then what's the problem? You just need to write the HTML better. > Note it's possible to fool NetSurf into *not* doing the Unicode conversion > by hand-calculating the hex, and changing the "Text2è" to Text2%E8", which > is what NetSurf 2.9 should've been doing to conform with HTML standards. Quote me the relevant bit of the HTML standards. By that token you would expect any % appearing in an href attribute to be encoded as %25 but I can assure you that no mainstream browsers do this. The href attribute is first decoded from HTML (for example, converting any "&" to "&") and then offered to the server as it is. -- Matthew Phillips Durham
Back to comp.sys.acorn.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Local browsing Tennant Stuart <tennant@orpheus.co.uk> - 2012-09-03 18:01 +0100
Re: Local browsing Graham Pickles <graham@durain.demon.co.uk> - 2012-09-03 18:50 +0100
Re: Local browsing John Rickman Iyonix <rickman@argonet.co.uk> - 2012-09-03 20:18 +0100
Re: Local browsing Tennant Stuart <tennant@orpheus.co.uk> - 2012-09-04 18:01 +0100
Re: Local browsing Chris Johnson <chrisjohnson+news@spamcop.net> - 2012-09-04 20:25 +0100
Re: Local browsing Dave Symes <dave@triffid.co.uk> - 2012-09-04 22:00 +0100
Re: Local browsing Dave Symes <dave@triffid.co.uk> - 2012-09-04 22:09 +0100
Re: Local browsing Tennant Stuart <tennant@orpheus.co.uk> - 2012-09-05 18:08 +0100
Re: Local browsing "Felicity S." <Flcty@rdsqurrl.com> - 2012-09-10 18:52 +0100
Re: Local browsing Theo Markettos <theom+news@chiark.greenend.org.uk> - 2012-09-10 19:43 +0100
Re: Local browsing Tennant Stuart <tennant@orpheus.co.uk> - 2012-09-11 18:01 +0100
Re: Local browsing Tennant Stuart <tennant@orpheus.co.uk> - 2012-09-17 18:02 +0100
Re: Local browsing "Felicity S." <Flcty@rdsqurrl.com> - 2012-09-18 00:15 +0100
Re: Local browsing Tennant Stuart <tennant@orpheus.co.uk> - 2012-09-18 18:02 +0100
Re: Local browsing Matthew Phillips <spam2011m@yahoo.co.uk> - 2012-09-18 07:28 +0100
Re: Local browsing Tennant Stuart <tennant@orpheus.co.uk> - 2012-09-19 18:00 +0100
Re: Local browsing Russell Hafter News <see.sig@walkingingermany.invalid> - 2012-09-19 21:06 +0100
Re: Local browsing Theo Markettos <theom+news@chiark.greenend.org.uk> - 2012-09-20 13:40 +0100
Re: Local browsing Matthew Phillips <spam2011m@yahoo.co.uk> - 2012-09-21 07:17 +0100
Re: Local browsing Tennant Stuart <tennant@orpheus.co.uk> - 2012-09-22 18:01 +0100
Re: Local browsing Matthew Phillips <spam2011m@yahoo.co.uk> - 2012-09-24 07:46 +0100
Re: Local browsing Matthew Phillips <spam2011m@yahoo.co.uk> - 2012-09-21 07:42 +0100
Re: Local browsing Matthew Phillips <spam2011m@yahoo.co.uk> - 2012-09-21 07:45 +0100
Re: Local browsing Tennant Stuart <tennant@orpheus.co.uk> - 2012-09-22 18:00 +0100
Re: Local browsing Matthew Phillips <spam2011m@yahoo.co.uk> - 2012-09-24 07:38 +0100
Re: Local browsing Tennant Stuart <tennant@orpheus.co.uk> - 2012-09-25 18:01 +0100
Re: Local browsing Matthew Phillips <spam2011m@yahoo.co.uk> - 2012-09-25 23:04 +0100
Re: Local browsing Theo Markettos <theom+news@chiark.greenend.org.uk> - 2012-09-26 01:58 +0100
Re: Local browsing "Felicity S." <Flcty@rdsqurrl.com> - 2012-09-27 00:26 +0100
Re: Local browsing Tennant Stuart <tennant@orpheus.co.uk> - 2012-10-01 18:03 +0100
Help Please - RiscPC won't boot Boblith News Sender <bob@boblith44.plus.com> - 2012-10-02 18:10 +0200
Re: Help Please - RiscPC won't boot Jim Nagel <jimnewsm10d@abbeypress.co.uk> - 2012-10-02 18:33 +0100
Re: Help Please - RiscPC won't boot Chris Newman <cvjazz@waitrose.com> - 2012-10-02 19:39 +0100
Re: Help Please - RiscPC won't boot "Bob's News account" <bob@boblith44.plus.com> - 2012-10-06 03:22 +0000
Re: Help Please - RiscPC won't boot Chris Newman <cvjazz@waitrose.com> - 2012-10-06 16:37 +0100
Re: Help Please - RiscPC won't boot "Dave Plowman (News)" <dave@davenoise.co.uk> - 2012-10-02 23:25 +0100
csiph-web