Article View: news.software.nntp
Article #83688Re: Encoding of AUTHINFO USER/PASS arguments
From: nick
Date: Wed, 17 Nov 2010 20:40
Date: Wed, 17 Nov 2010 20:40
55 lines
3086 bytes
3086 bytes
That would be a client issue not a server problem. If you used été as a password the client then converts that to a encoded string of bytes, thats' all the server sees is a string of bytes, it does not display your password in any human readable form so it does not need to know the encoding used. Just a string of numbers. It is upto the client to convert any language to a string of bytes, not for the server to understand every language on earth. There are no requirements that a password should be human readable. "Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:iash7b$1vm$1@news.trigofacile.com... > Hi, > > In the nntplib implementation of Python 3.2, a question is raised > about how AUTHINFO USER/PASS arguments should be encoded. > > The initial implementation of RFC 4643 they do is to encode > everything in UTF-8 because RFC 3977 mentions that "The character > set for all NNTP commands is UTF-8." and RFC 4643 does not say > anything about the encoding. > Just a "user-pass-char = B-CHAR" without any explanation... > > > I therefore wonder how news clients handle 8-bit passwords. > > ** How do current news readers send them to news servers? > ** And how news servers should decode them? > > > Suppose my password is "été". What is sent for: > > AUTHINFO PASS été > ? > > Is it '\xE9' + 't' + '\xE9' (3 bytes) or "été" (5 bytes, > encoded in UTF-8)? > > > It appears that RFC 4643 does not explain the expected behaviour > on that subject. > If I have a user name written in Chine characters, GB2312, Big-5 > and UTF-8 are quite different! > > What should be done? Is there an interoperable way to follow? > (news clients + news servers) > > -- > Julien ÉLIE > > « Je ne cherche pas à connaître les réponses, je cherche à comprendre > les questions. »
Technical Details
Message-ID:
<ic1eju$has$1@speranza.aioe.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mailReferences:
<iash7b$1vm$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <ic1eju$has$1@speranza.aioe.org> Subject: Re: Encoding of AUTHINFO USER/PASS arguments Date: Wed, 17 Nov 2010 12:40:15 -0800 From: "nick" <nick@gmail.com> References: <iash7b$1vm$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail Newsgroups: news.software.nntp Organization: Aioe.org NNTP Server Lines: 55 NNTP-Posting-Host: 3SFizbmBRuwoFhPc1PBQOA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-15"; reply-type=response Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18263 X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Microsoft Windows Mail 6.0.6002.18197 X-MSMail-Priority: Normal X-Original-Bytes: 2912