Article View: news.software.readers
Article #261744Re: Ping Bernd Rose: How do you set and define a variable in 40Tude Dialog
From: Bernd Rose
Date: Tue, 10 Jan 2017 05:59
Date: Tue, 10 Jan 2017 05:59
54 lines
5083 bytes
5083 bytes
On Tue, 10th Jan 2017 01:06:06 +0100, Stijn De Jong wrote: Michael Bรคuerle wrote: >> A fixed character set can't work. >> You have to use the one from the article you quote or you must convert >> the data to the fixed character set (not possible in the case of my >> article <news:AABYc82AAKEAAABL.A1.flnews@WStation5.stz-e.de> that >> contains the Unicode character U+1E9E that's not present in ISO 8859-1). > > Thanks for describing the fact that even your own headers can't account for > the characters used in your post, and that no attempt on my part to rectify > that could possibly work. > > This all points to the same thing that I originally said, which is that the > headers don't matter for those three lines. > Mime-Version (it's almost always 1.0 anyway so that should just default) > Content-Type & character set (doesn't matter what I put there anyway) > Encoding You can't insert arbitrary encoding information directly before sending and expect the message to be encoded correctly! Dialog converts any received message to Unicode and holds them inside an Unicode memory buffer (the same with newly created messages) until you send it. Then Dialog tries any character set and encoding you permitted Dialog to use in the sequence you set up. If you don't change the default settings, Dialog will find at least one suitable charset/encoding combination, that fits to the current chars inside the memory text buffer. (When the original post contains characters not supported by your operating system, that my still lead to question marks or sth. like that, though.) As long as you don't fiddle with the settings, the post will go out correctly. Changing settings requires correct knowledge of the consequences. Else: Hands off!! Inside OnBeforeSendingMessage, the charset/encoding declaration is already decided by Dialog. /Any/ change you do has to be compliant with that decision. Else, you need to re-encode the whole message (headers /and/ body) to match your new encoding. Even if you /don't/ change charset/encoding, you need to take care, that any change inside OnBeforeSendingMessage fits the selected charset/encoding. > (why would text even be encoded unless that means ascii?) Different operating systems use different charset/encoding defaults. And different system languages require a different set of characters. The transmission capacity was historically (and to some degree still is) a rare good. Therefore, out of the spectrum of possible encoding systems, the most efficient is selected. For plain English text 7-bit usually is sufficient. Other languages (need to) use 8-bit or more to represent their characters. Since encoding requires overhead (and historically also relevant: computation power), it is often more efficient to send messages encoded in 8-bit. Since different languages use the upper half of such a bit plane differently, the charset information has to be transmitted alongside the bit-depth-encoding information. Bernd
Technical Details
Message-ID:
<13arb5jklrhgr$.dlg@b.rose.tmpbox.news.arcor.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.(126883).mbox.7z!not-for-mailReferences:
<o4bg7v$t51$1@gioia.aioe.org> <1xmerwn6hkw2o.dlg@b.rose.tmpbox.news.arcor.de> <o4cbjs$4pc$1@gioia.aioe.org> <w4daz9t9jqbr$.dlg@b.rose.tmpbox.news.arcor.de> <o4mq1e$2u7$1@gioia.aioe.org> <1k5qgdg6ulbzp$.dlg@b.rose.tmpbox.news.arcor.de> <o4pna9$9u9$1@gioia.aioe.org> <11rcu0h87cvsa.dlg@b.rose.tmpbox.news.arcor.de> <o4rlog$1j7o$1@gioia.aioe.org> <1ffs4h0aol2bg.dlg@b.rose.tmpbox.news.arcor.de> <o4s2ec$a4u$1@gioia.aioe.org> <ybae5rblj1id.dlg@b.rose.tmpbox.news.arcor.de> <AABYci8BUB8AAFIq.A1.flnews@WStation4.micha.freeshell.org> <o4uq53$1co3$1@gioia.aioe.org> <AABYc4OvAJgAAABL.A1.flnews@WStation5.stz-e.de> <o50el2$1q76$1@gioia.aioe.org> <AABYc82AAKEAAABL.A1.flnews@WStation5.stz-e.de> <o50jlh$4f0$1@gioia.aioe.org> <o50k21$57i$1@gioia.aioe.org> <AABYc9r3AK0AAABL.A1.flnews@WStation5.stz-e.de> <o518hf$16at$3@gioia.aioe.org>Show Full Headers
Complete Article Headers
Message-ID: <13arb5jklrhgr$.dlg@b.rose.tmpbox.news.arcor.de> Subject: Re: Ping Bernd Rose: How do you set and define a variable in 40Tude Dialog Date: Tue, 10 Jan 2017 06:59:52 +0100 From: Bernd Rose <b.rose.tmpbox@arcor.de> References: <o4bg7v$t51$1@gioia.aioe.org> <1xmerwn6hkw2o.dlg@b.rose.tmpbox.news.arcor.de> <o4cbjs$4pc$1@gioia.aioe.org> <w4daz9t9jqbr$.dlg@b.rose.tmpbox.news.arcor.de> <o4mq1e$2u7$1@gioia.aioe.org> <1k5qgdg6ulbzp$.dlg@b.rose.tmpbox.news.arcor.de> <o4pna9$9u9$1@gioia.aioe.org> <11rcu0h87cvsa.dlg@b.rose.tmpbox.news.arcor.de> <o4rlog$1j7o$1@gioia.aioe.org> <1ffs4h0aol2bg.dlg@b.rose.tmpbox.news.arcor.de> <o4s2ec$a4u$1@gioia.aioe.org> <ybae5rblj1id.dlg@b.rose.tmpbox.news.arcor.de> <AABYci8BUB8AAFIq.A1.flnews@WStation4.micha.freeshell.org> <o4uq53$1co3$1@gioia.aioe.org> <AABYc4OvAJgAAABL.A1.flnews@WStation5.stz-e.de> <o50el2$1q76$1@gioia.aioe.org> <AABYc82AAKEAAABL.A1.flnews@WStation5.stz-e.de> <o50jlh$4f0$1@gioia.aioe.org> <o50k21$57i$1@gioia.aioe.org> <AABYc9r3AK0AAABL.A1.flnews@WStation5.stz-e.de> <o518hf$16at$3@gioia.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.readers.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers Organization: albasani.net Lines: 54 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net f8b8PHY4rTf7CAaAeKShO0YzyYXDtbsT6MmjEruMulLAQYDe2CEzwxc3iG2O5G334Vz/D62f4YRsoi4XTPYO6g== NNTP-Posting-Date: Tue, 10 Jan 2017 05:59:53 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="qBS1c5RGWD0MSrHxmxwe9EmXCWgGVjYqMYVnVBEvqrPwWbbeHf9cj5PCpomzEJcTlN6Nh2kwnCWj812nnFjXkJ/Q8yJ4zA8spER/Xma8lw8NpiM+NVWfuyZc9pIxGCN0"; mail-complaints-to="abuse@albasani.net" User-Agent: 40tude_Dialog/2.0.15.41 (1aec25ea.19.364) Cancel-Lock: sha1:szxw07CCgOQn71NHa9USEVdO6lg= X-Received-Body-CRC: 4100776534 X-Received-Bytes: 5014