Path: ...!goblin2!goblin.stu.neva.ru!weretis.net!feeder8.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Bernd Rose Newsgroups: news.software.readers Subject: Re: Dialog signature delimiter Date: Mon, 19 Apr 2021 22:01:33 +0200 Message-ID: References: <17rf3wjx02quj$.dlg@b.rose.tmpbox.news.arcor.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Injection-Info: solani.org; logging-data="28740"; mail-complaints-to="abuse@news.solani.org" User-Agent: 40tude_Dialog/2.0.15.41 (d414b0ca.179.279) Cancel-Lock: sha1:T0znp8pA3AqYJZEnhr/BQzjmdrA= X-User-ID: eJwFwQkBwDAIA0BLPCl0cigQ/xJ2dzw0OhEncHi49e6Y6lcGZ6dtcNZ2kGnfE6PSLIiht9OfQFpg5T2dBTBX976U1VzZH++/Gpw= Bytes: 2559 Lines: 27 On Mon, 19th Apr 2021 21:25:50 +0200, bill wrote: > On Mon, 19 Apr 2021 20:29:34 +0200, Bernd Rose wrote: > >> There's more to it. Depending on your permitted/restricted encoding >> settings and the characters contained in your message before the script >> fires up, the text may be encoded in quite a few different ways. > > I don't think there is more to it since it's ALWAYS fixed by Notepad++ Notepad++ doesn't come into play, here. You send a message from Dialog Editor. And depending on the characters found (in the current message), Dialog checks its encoding settings and formats the text to 7-Bit-ASCII, Windows-1250 or its siblings, CP850 or its siblings, UTF-7, UTF-8,... Every message /may/ be sent with a different encoding. The OnBeforeSending script needs to replace characters formatted in one of the afore mentioned encodings. The letter ä, for instance may be found in this text buffer as char 0x84, 0xE4, word 0xC3A4 and in several other ways. Each variant has to be replaced, if the source encoding is not fixed. (Which in itself usually wouldn't be a good idea, either.) Moreover, replacing a character 0x84 with (e.g.) ae under the assumption, it would have the meaning ä, could be wrong, altogether. If the source encoding happens to be Ansi-1252, this byte position represents the lower curly quotation marks. Bernd