Article View: news.software.readers
Article #257879Re: Unicode G clef: 𝄞
From: Michael Baeuerle
Date: Thu, 12 Jun 2014 09:53
Date: Thu, 12 Jun 2014 09:53
68 lines
4820 bytes
4820 bytes
coyo wrote: > tlvp wrote: > > Michael Baeuerle wrote: > > > Shmuel Metz wrote: > > > > > > > > [...] If you mean > > > > that surrogate pairs in UTF-8 are transforms of Unicode characters > > > > rather than Unicode characters themselves, that's inherent in the > > > > definition of a transform. [...] > > > > > > I mean that it is not allowed to simply convert the codepoints > > > (UTF-16 surrogate pairs use valid Unicode codepoints) to another UTF > > > in all cases. > > > > > > Yes, this is inherent to the definition of a transform, but it's widely > > > implemented wrong. Newsreaders like Outlook Express and Dialog cripple > > > replies to correct UTF-8 content containing codepoints above U+FFFF by > > > using UTF-8 encoded surrogate codepoints. > > > [...] > > > > This reply is coming to you via 40tude Dialog (which evidently failed to > > render any G clef from the outset, so it'd surprise me to find if there > > were a recognizable G clef anywhere in this reply :-) ) . > > > > > [Normalization stuff] > > I still say everyone should use UTF-32 instead of UTF-8. There is no > kill like overkill, and four bytes per character isn't that bad. For latin based languages it would be really bad. > Besides, imagine how much more efficient Base64 encoding would be if you > could use Unicode codepoints with a full static codepoint-to-byte mapping? This will only eliminate the code sequences of the UTF-8 and UTF-16 transfer encodings and the problem that they can be invalid. All the other complex Unicode stuff will always stay with you: - Invalid codepoints Not every representable codepoint is mapped in Unicode (but it may become mapped in the future). Some mapped codepoints are only valid for the UTF-16 transfer encoding (this is like Dialog breaks the subject here). - Normalization Many glyphs are compositions of multiple codepoints and there can be multiple "canonically equivalent" representations of a glyph. The possibility for canonical equivalence of different codepoint sequences is a fundamental Unicode property. You can't work around it regardless of what transfer encoding you use (or newly invent). Your Thunderbird have done this with the subject: | | Subject: Re: Unicode G clef: =?UTF-8?B?77+977+977+977+977+977+9?= Decode base64 and print as hexadecimal bytes: | | $ printf "77+977+977+977+977+977+9" | base64 -d | hexdump -e '18/1 "%02X ""\n"' | EF BF BD EF BF BD EF BF BD EF BF BD EF BF BD EF BF BD ^^^^^^^^ The UTF-8 sequence 0xEFBFBD decodes to the Unicode codepoint U+FFFD: http://www.fileformat.info/info/unicode/char/fffd/index.htm Result: 6 replacement characters instead of a G clef. Micha
Technical Details
Message-ID:
<AABTmXiYBW8AAAK0.A1.flnews@WStation2.stz-e.de>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!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<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> <AABTfh0HF+UAAAbo.A1.flnews@WStation1.micha.freeshell.org> <537f7304$15$fuzhry+tra$mr2ice@news.patriot.net> <AABTgbui+zwAAAIC.A1.flnews@WStation1.micha.freeshell.org> <538204e6$25$fuzhry+tra$mr2ice@news.patriot.net> <AABTgvX5CpQAAAVK.A1.flnews@WStation2.stz-e.de> <e0wsauyydj4t.ezircgcdijib.dlg@40tude.net> <S7qdnWXBk4JHkATOnZ2dnUVZ_t-dnZ2d@giganews.com>Show Full Headers
Complete Article Headers
Message-ID: <AABTmXiYBW8AAAK0.A1.flnews@WStation2.stz-e.de>
Subject: Re: Unicode G clef: 𝄞
Date: Thu, 12 Jun 2014 09:53:28 +0000
From: Michael Baeuerle <michael.baeuerle@stz-e.de>
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> <AABTfh0HF+UAAAbo.A1.flnews@WStation1.micha.freeshell.org> <537f7304$15$fuzhry+tra$mr2ice@news.patriot.net> <AABTgbui+zwAAAIC.A1.flnews@WStation1.micha.freeshell.org> <538204e6$25$fuzhry+tra$mr2ice@news.patriot.net> <AABTgvX5CpQAAAVK.A1.flnews@WStation2.stz-e.de> <e0wsauyydj4t.ezircgcdijib.dlg@40tude.net> <S7qdnWXBk4JHkATOnZ2dnUVZ_t-dnZ2d@giganews.com>
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!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 68
Reply-To: Michael Baeuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
X-Trace: individual.net V+TEjngirJnm9krNCNZ8Lgfrg43tSoh6OvSMh1XGLsPuaQvtsE
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:l5elPx3nO95yX3ZByvxm4Yj4Yvk=
Injection-Date: 12 Jun 2014 09:53:28 -0000
User-Agent: flnews/0.7 (for NetBSD)
X-Original-Bytes: 4534