🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #81477

Re: XNEWS: Error with � in URL

#81477
From: Jukka K. Korpela
Date: Sun, 15 Jul 2001 18:57
50 lines
3516 bytes
Erland Sommarskog <sommar@algonet.se> wrote:

> Click this URL:
> 
>    http://www.usenet-se.net/f�rslag/forslag-se-samlevnad-sexualitet.tx
>    t 

(The URL was broken into two lines by Xnews. Too bad. I preserve this 
just to point to a problem in Xnews. It shouldn't do that. There's 
possibly a setting for this, but surely by default a newsreader should 
_not_ break strings that way, no matter what they have been told to use 
as maximum line length.)

It's not a syntactically correct URL. By the URL specifications, only US-
Ascii characters are allowed. Well, this is the practical content. It's 
expressed more or less obscurely. If you like to analyze it, it's in RFC 
2396; I have composed a hypertext version of it:
http://www.cs.tut.fi/~jkorpela/rfc/2396/toc.html

> This will give a Not Found message, and if you look in the browser
> you will see that the � has been changed to a "smart quote".

This depends on the browser, and perhaps on the server as well. There is 
no specification on what _should_ happen when a malformed URL with a non-
Ascii character is used.

The practical conclusion is that you should name your Web directories and 
files using US-Ascii only.

> What has
> happened is that somewhere along the line the text has been converted
> from the OEM character set (the charset used by command-line tools)
> to ANSI.

"ANSI"? That's a misnomer for sure (in this context and intended meaning 
- the real ANSI is an organization, and it has _not_ approved "the ANSI 
character set"!).

But in any case, the character encoding does not matter. Just don't use 
non-Ascii characters in URLs, Mmm-kay? And newsreaders cannot be blamed 
for not handling them, especially since they probably just throw a URL at 
a browser which will then do something with it, and opening a Web 
document by clicking on a URL is just an extra enhancement, not part of 
basic functionality of a newsreader. (To be honest, I must admit it is an 
_important_ enhancement.)

-- 
Yucca, http://www.malibutelecom.com/yucca/
 alias http://www.cs.tut.fi/~jkorpela/
Technical Details
Message-ID: <Xns90DFDF577C064jkorpelacstutfi@193.64.137.17>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed1.telenordia.se!algonet!newsfeed1.funet.fi!newsfeed2.funet.fi!newsfeeds.funet.fi!newsfeed.kpnqwest.fi!news.kpnqwest.fi!not-for-mail
References: <Xns90DFA365D2D11Yazorman@127.0.0.1>

Show Full Headers
Complete Article Headers
Message-ID: <Xns90DFDF577C064jkorpelacstutfi@193.64.137.17>
Subject: Re: XNEWS: Error with � in URL
Date: Sun, 15 Jul 2001 18:57:30 GMT
From: "Jukka K. Korpela" <jkorpela@cs.tut.fi>
References: <Xns90DFA365D2D11Yazorman@127.0.0.1>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed1.telenordia.se!algonet!newsfeed1.funet.fi!newsfeed2.funet.fi!newsfeeds.funet.fi!newsfeed.kpnqwest.fi!news.kpnqwest.fi!not-for-mail
Newsgroups: news.software.readers
User-Agent: Xnews/4.06.22
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Face: C{Jn3L\q!fzxZz{">eW569d,&KqTxMoRn|e:$4I)SW+JR@hXW6,@pC7<4ut^Vkz<3gA]I*fYpbGm}Kk5[UhT](AH]"_JZhX7$ZBXg6J)U;,,-P*w:)$Es\o;}~z~'kuGV0^zIDXgFb$mo-,$OkGFcbj#L]>+r{~'gF]xK]Sp;{Tc"o]fYY\(qR+mE5Ro~]xxnu(eS*@_p7o`,f.-@R^E
Lines: 49
NNTP-Posting-Host: 212.226.144.169
X-Complaints-To: helpdesk@kpnqwest.fi
X-Trace: news.kpnqwest.fi 995223450 212.226.144.169 (Sun, 15 Jul 2001 21:57:30 EET DST)
NNTP-Posting-Date: Sun, 15 Jul 2001 21:57:30 EET DST
Organization: KPNQwest Finland customer news service