🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #257698

Re: I prefer raw UTF·8 over raw "encoded words".

#257698
From: Michael Baeuerle
Date: Thu, 22 May 2014 15:51
96 lines
5721 bytes
Shmuel Metz wrote:
> Michael Bäuerle wrote:
> > 
> > IMHO the IETF should think twice about this topic. Netnews don't 
> > have the problems created by the 7 Bit transport system, but it 
> > is obvious that Unicode is not well suited for identifiers because 
> > the raw encoding is ambigous by definition.
> 
> It is certainly true that two distinct sequence of Unicode characters
> may be equivalent, but UTF-8 itself is unambigous. Under what
> cercumstances would someone key in or generate distinct but equivalent
> Unicode sequences for, e.g., a mailbox, a message id?

It is the same problem as with Unicode filenames. Take a NFS server and
create a file with GNU/Linux on it over the network. Then take a Mac
and do the same (in the same directory). Now it's likely that you have
two files with the same name in this directory (because the common
normalization form is different on these 2 systems).

> > Think about Newsgroup names,
> 
> I would expect the news client to select the newsgroup from an
> existing list.

The problem start if you try to search the list (and maybe not
find existing groups even if you correctly typed in the name).
 
> > Message-IDs,
> 
> I would expect the news client to copy the message-id intact from
> Message_is to References. I don't see what role normalization would
> play.

Again, you may want to search for a Message-ID and type the name
in an input field (think about Google in the good older days).
 
> > In addition, with Unicode in UTF-8 representation you need to 
> > check anything for encoding validity in multiple levels.
> 
> Why?

Level one is the transformation format ("UTF"). There are invalid codes
or code sequences for all newer versions like UTF-8, UTF-16 and UTF-32.

Level two is the semantical meaning. An example are the surrogate
codepoints that are invalid for UTF-8 and UTF-32 (and even for UTF-16
if not used in the defined way):
https://en.wikipedia.org/wiki/Surrogate_pair
Another aspect of level two are forbidden codepoints (the ones above
U+10FFFF) that *can* be encoded with UTF-8 and UTF-32 (but not with
UTF-16).

Level three is the ordering of the codepoints. Some glyphs are canonical
compositions of multiple codepoints (more than two as in my example with
the decomposed "ä"). Because the number is not limited by the Unicode
standard, there may exist an unlimited number of non-canonical orders
for the components of results that *are* canonically equivalent. This is
the area where normalization comes into play.

A good example is this greek glyph:
http://www.fileformat.info/info/unicode/char/1f85/index.htm
with 6 canonically equivalent representations:
U+1F85 (NFC)
U+1F05 U+345
U+1F01 U+301 U+345
U+03B1 U+314 U+301 U+345 (NFD)
U+03B1 U+345 U+314 U+301
U+03B1 U+314 U+345 U+301

Text with mixed representations may easily result from operations like
cut & pase from different sources or manual input.

> > Windows programs that are internally using UTF-16 tend to simply 
> > convert the codepoints to UTF-8 and fail with codepoints above 
> > U+FFFF.
> 
> Then those programs are in error.

Yes, but because it's so hard to implement Unicode correctly, most
if not all programs are more or less broken when handling it.

> Besides, the disagreement wasn't over whether to use Unicode at all,
> but rather how to represent it in Internet messages, more specifically
> how to represent it in news articles. Using UTF-8 only with a protocol
> that allows it is certainly no worse than what Relf wants to do, which
> is to use UTF-8 with a protocol that does not allow it.

Full acknowledge. If it was defined correctly and anybody comply with
that definition it will surely work.

My question was: How likely will this be?
Maybe things are not much better than with MIME at the end (most things
are well defined but it's not easy to implement correctly).


Micha
Technical Details
Message-ID: <AABTfh0HF+UAAAbo.A1.flnews@WStation1.micha.freeshell.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <AABTdHqgK58AABXP.A1.flnews@WStation2.stz-e.de> <AABTdHwyK6EAABXP.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@May.15{2.47.Seattle.2014}> <AABTdJlxK6MAABXP.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@May.15{6.10.Seattle.2014}> <AABTdNKdERgAAAiK.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@May.15{13.10.Seattle.2014}> <AABTdT6Y83UAAEau.A1.flnews@WStation4.micha.freeshell.org> <537a2a8b$13$fuzhry+tra$mr2ice@news.patriot.net> <AABTejLuQ3kAACG8.A1.flnews@WStation2.stz-e.de> <537a9009$20$fuzhry+tra$mr2ice@news.patriot.net> <AABTfFr7YfEAAAFB.A1.flnews@WStation2.stz-e.de> <537d1bf0$32$fuzhry+tra$mr2ice@news.patriot.net>

Show Full Headers
Complete Article Headers
Message-ID: <AABTfh0HF+UAAAbo.A1.flnews@WStation1.micha.freeshell.org>
Subject: Re: I prefer raw UTF·8 over raw "encoded words".
Date: Thu, 22 May 2014 15:51:35 +0000
From: Michael Baeuerle <michael.baeuerle@gmx.net>
References: <AABTdHqgK58AABXP.A1.flnews@WStation2.stz-e.de> <AABTdHwyK6EAABXP.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@May.15{2.47.Seattle.2014}> <AABTdJlxK6MAABXP.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@May.15{6.10.Seattle.2014}> <AABTdNKdERgAAAiK.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@May.15{13.10.Seattle.2014}> <AABTdT6Y83UAAEau.A1.flnews@WStation4.micha.freeshell.org> <537a2a8b$13$fuzhry+tra$mr2ice@news.patriot.net> <AABTejLuQ3kAACG8.A1.flnews@WStation2.stz-e.de> <537a9009$20$fuzhry+tra$mr2ice@news.patriot.net> <AABTfFr7YfEAAAFB.A1.flnews@WStation2.stz-e.de> <537d1bf0$32$fuzhry+tra$mr2ice@news.patriot.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 96
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net bYgjOyyxpvC5YVOKERRQGQkEEj8Yx6BHKUM2GEiTwmFHCYXsup
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:JQMa55UPFN2PRF7pubzlwOMCmEo=
Injection-Date: 22 May 2014 15:51:35 -0000
User-Agent: flnews/0.7rc2 (for GNU/Linux)
X-Original-Bytes: 5401