🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
39 messages
39 total messages Started by June Bug Wed, 27 Sep 2017 00:47
[dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262296
Author: June Bug
Date: Wed, 27 Sep 2017 00:47
24 lines
1920 bytes
What is the trick to get dialog to NOT send out cent signs in place of 
curly quotes and apostrophes?
 <http://img4.imagetitan.com/img.php?image=16_quote0.jpg>

When I cut and paste news articles, I always see perfectly good curly 
quotes in Dialog but after sending, the recipients always get the "cent" 
sign in place of any apostrophe, double quote, or single quotes.

It happens with everything but here is just one example from:
 <https://practicaltypography.com/straight-and-curly-quotes.html>

Look at this example:
"That's a 'magic' sock"
¡§That¡¦s a ¡¥magic¡¦ sock.¡¨

Notice that both lines *look* fine in Dialog *before* I send it!
 <http://img4.imagetitan.com/img.php?image=16_quote.jpg>
But afterward all curly quotes & apostrophes are replaced with cent signs.

This curly-quote-to-cent-sign happens even when cutting and pasting from a 
Microsoft document, or any web page or document with curly quotes.

What is the trick to get dialog to NOT send out cent signs in place of 
curly quotes and apostrophes?
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262297
Author: June Bug
Date: Wed, 27 Sep 2017 00:57
29 lines
2053 bytes
The date is 26/09/2017 17:47

> What is the trick to get dialog to NOT send out cent signs in place of 
> curly quotes and apostrophes?

Wow. That last example was munged far worse than I had thought it would be.

Here's a simpler example that just replaces the curly quotes and
apostrophes with cent signs.

All I want is for dialog to stop doing that replacement so that Dialog
sends what Dialog shows and the recipient sees what I see when I'm sending
it.

0. Here is an arbitrary web page with curly quotes.
<http://bgr.com/2017/09/26/macos-high-sierra-keychain-password-hack/>

1. Here is what it looks like on the web page.
   <http://img4.imagetitan.com/img.php?image=16_quote_x.jpg>

2. Here is what it looks like cut and pasted into Dialog.
   <http://img4.imagetitan.com/img.php?image=16_quote_y.jpg>

3. But this will be all screwed up when you get it.
´If I can find these bugs, obviously nation states, malicious adversaries,
and cybercriminals have tons more time and resources. Iÿm sure theyÿre
finding these bugs as well,¡ he added.

How do I fix this curly-quote problem using Dialog?
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262298
Author: Michael Bäuerle
Date: Wed, 27 Sep 2017 08:14
44 lines
3123 bytes
June Bug wrote:
> The date is 26/09/2017 17:47
> > 
> > What is the trick to get dialog to NOT send out cent signs in place of 
> > curly quotes and apostrophes?
> 
> Wow. That last example was munged far worse than I had thought it would be.
> 
> Here's a simpler example that just replaces the curly quotes and
> apostrophes with cent signs.
> 
> All I want is for dialog to stop doing that replacement so that Dialog
> sends what Dialog shows and the recipient sees what I see when I'm sending
> it.
> 
> 0. Here is an arbitrary web page with curly quotes.
> <http://bgr.com/2017/09/26/macos-high-sierra-keychain-password-hack/>
> 
> 1. Here is what it looks like on the web page.
>    <http://img4.imagetitan.com/img.php?image=16_quote_x.jpg>
> 
> 2. Here is what it looks like cut and pasted into Dialog.
>    <http://img4.imagetitan.com/img.php?image=16_quote_y.jpg>
> 
> 3. But this will be all screwed up when you get it.
> ?If I can find these bugs, obviously nation states, malicious adversaries,
> and cybercriminals have tons more time and resources. I?m sure they?re
> finding these bugs as well,? he added.

This was completely broken because the MIME declaration was "US-ASCII".

> How do I fix this curly-quote problem using Dialog?

I don't know much details about Dialog, but first you should check
whether Dialog is correctly configured to handle such content at all.

If you quote the following lines:

| “If I can find these bugs, obviously nation states, malicious
| adversaries, and cybercriminals have tons more time and resources.
| I’m sure they’re finding these bugs as well,” he added.

this will check the internal handling of such characters. If this
works, the problem is only copy&paste related.
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262299
Author: Whiskers
Date: Wed, 27 Sep 2017 11:40
53 lines
3385 bytes
On 2017-09-27, June Bug <junebug55001@inbox.com> wrote:
> What is the trick to get dialog to NOT send out cent signs in place of 
> curly quotes and apostrophes?
>  <http://img4.imagetitan.com/img.php?image=16_quote0.jpg>
>
> When I cut and paste news articles, I always see perfectly good curly 
> quotes in Dialog but after sending, the recipients always get the "cent" 
> sign in place of any apostrophe, double quote, or single quotes.
>
> It happens with everything but here is just one example from:
>  <https://practicaltypography.com/straight-and-curly-quotes.html>
>
> Look at this example:
> "That's a 'magic' sock"
> ¡§That¡¦s a ¡¥magic¡¦ sock.¡¨
>
> Notice that both lines *look* fine in Dialog *before* I send it!
>  <http://img4.imagetitan.com/img.php?image=16_quote.jpg>
> But afterward all curly quotes & apostrophes are replaced with cent signs.
>
> This curly-quote-to-cent-sign happens even when cutting and pasting from a 
> Microsoft document, or any web page or document with curly quotes.
>
> What is the trick to get dialog to NOT send out cent signs in place of 
> curly quotes and apostrophes?

I see no cents
<http://www.zimagez.com/zimage/screenshot2017-09-2712-27-04.php>.

I think the clue lies in this header which your newsreader has inserted:

Content-Type: text/plain; charset="US-ASCII"

US-ASCII has no curly quotes, it only has basic typewriter characters.

When you copy/paste from something that isn't in US-ASCII you introduce
characters which 'Dialog' can't handle and doesn't know what to do with.
(When you copy/paste from something made using Microsoft software, you
also introduce character codes that are not recognised by non-Microsoft
software, which just compounds the problem).

It'll be fun to see what happens to the character codes scrambled by
'Dialog' after they've been through my newsreader and text editor.

I don't know if 'Dialog' can be made to handle the current usenet
standard character set which is UTF-8, which has a much larger range of
characters available (but still doesn't get around all of Microsoft's
silliness).

-- 
-- ^^^^^^^^^^
--  Whiskers
-- ~~~~~~~~~~
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262300
Author: June Bug
Date: Wed, 27 Sep 2017 13:37
46 lines
2904 bytes
The date is 27/09/2017 04:40

> I see no cents
> <http://www.zimagez.com/zimage/screenshot2017-09-2712-27-04.php>.

I agree. I thought it would be cents but it was something else that showed
up. 

I just want the curly quotes to show up as sent from dialog.
What should the header insert to allow curly quotes?

> I think the clue lies in this header which your newsreader has inserted:
> Content-Type: text/plain; charset="US-ASCII"
> US-ASCII has no curly quotes, it only has basic typewriter characters.

May I ask which "content-type" has the curly quotes?

> When you copy/paste from something that isn't in US-ASCII you introduce
> characters which 'Dialog' can't handle and doesn't know what to do with.
> (When you copy/paste from something made using Microsoft software, you
> also introduce character codes that are not recognised by non-Microsoft
> software, which just compounds the problem).

Yes. I didn't even mention those "hidden hyphens" that I often run into.

I just want the received message to look like the sent message.
What content type should I use to make that happen?

> It'll be fun to see what happens to the character codes scrambled by
> 'Dialog' after they've been through my newsreader and text editor.
> 
> I don't know if 'Dialog' can be made to handle the current usenet
> standard character set which is UTF-8, which has a much larger range of
> characters available (but still doesn't get around all of Microsoft's
> silliness).

Ah, UTF-8. I will try changing that in a moment as all I want to know is
what to set Dialog to in order for the curly quotes to not be replaced with
gobbledegook.

It's that's UTF-8, is this the correct header lines to have Dialog add?
   Mime-Version: 1.0
   Content-Type: text/plain; charset=UTF-8
   Content-Transfer-Encoding: 8bit

The next post will be set to those settings to test out the curly quotes.
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262302
Author: June Bug
Date: Wed, 27 Sep 2017 13:46
37 lines
2472 bytes
The date is 27/09/2017 01:14

> This was completely broken because the MIME declaration was "US-ASCII".
> 
>> How do I fix this curly-quote problem using Dialog?
> 
> I don't know much details about Dialog, but first you should check
> whether Dialog is correctly configured to handle such content at all.
> 
> If you quote the following lines:
> 
>| ¡§If I can find these bugs, obviously nation states, malicious
>| adversaries, and cybercriminals have tons more time and resources.
>| I¡¦m sure they¡¦re finding these bugs as well,¡¨ he added.
> 
> this will check the internal handling of such characters. If this
> works, the problem is only copy&paste related.

Now I understand that the "content type" in my header is what seems to not 
be able to handle the curly quotes.

So now the question is how to figure out what content type handles the 
curly quotes?

Whiskers suggested UTF-8 so I set this header to (hopefully) say:
   Mime-Version: 1.0
   Content-Type: text/plain; charset=UTF-8
   Content-Transfer-Encoding: 8bit

Now I will cut and paste the curly quote article again.
 <https://practicaltypography.com/straight-and-curly-quotes.html>

"That's a 'magic' sock."  <=== this has straight quotes
¡§That¡¦s a ¡¥magic¡¦ sock.¡¨  <=== this has curly quotes

I won't know if UTF-8 worked until I send this out and look at the results.
If UTF-8 doesn't work, how do I know what content types have curly quotes?
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262301
Author: June Bug
Date: Wed, 27 Sep 2017 13:55
28 lines
2133 bytes
The date is 27/09/2017 06:46

> I won't know if UTF-8 worked until I send this out and look at the results.
> If UTF-8 doesn't work, how do I know what content types have curly quotes?

UTF-8 obviously failed.

Here is what I had that failed:
  Mime-Version: 1.0
  Content-Type: text/plain; charset=UTF-8
  Content-Transfer-Encoding: 8bit

Since Michael's text has umlauts, let's look at his headers:
  Mime-Version: 1.0
  Content-Type: text/plain; charset=UTF-8; format=fixed
  Content-Transfer-Encoding: 8bit

He seems to have "format=fixed", which I didn't have in that last post.

I'll try Michael's headers now & cut and paste from the same article:
 <https://practicaltypography.com/straight-and-curly-quotes.html>

"That's a 'magic' sock." <== straight quotes
¡§That¡¦s a ¡¥magic¡¦ sock.¡¨ <== curly quotes

If that doesn't work, can someone explain *what* headers will preserve the
curly quotes (which show up just fine here, for me, in my face, as I type
this)?
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262303
Author: Whiskers
Date: Thu, 28 Sep 2017 12:16
78 lines
4744 bytes
On 2017-09-27, June Bug <junebug55001@inbox.com> wrote:
> The date is 27/09/2017 04:40
>
>> I see no cents
>> <http://www.zimagez.com/zimage/screenshot2017-09-2712-27-04.php>.
>
> I agree. I thought it would be cents but it was something else that showed
> up. 
>
> I just want the curly quotes to show up as sent from dialog.
> What should the header insert to allow curly quotes?
>
>> I think the clue lies in this header which your newsreader has inserted:
>> Content-Type: text/plain; charset="US-ASCII"
>> US-ASCII has no curly quotes, it only has basic typewriter characters.
>
> May I ask which "content-type" has the curly quotes?

UTF-8 contains almost all the written characters to be found in any
current language (but few if any 'fonts' include them all).  It even has
emoji.  It's meant to be the current standard for 'the internet' and all
current computers should be using it by default (but some old ones can't
or haven't been modernised, and of course there are still old documents
and web pages created using older character sets or encodings).

>> When you copy/paste from something that isn't in US-ASCII you introduce
>> characters which 'Dialog' can't handle and doesn't know what to do with.
>> (When you copy/paste from something made using Microsoft software, you
>> also introduce character codes that are not recognised by non-Microsoft
>> software, which just compounds the problem).
>
> Yes. I didn't even mention those "hidden hyphens" that I often run into.
>
> I just want the received message to look like the sent message.
> What content type should I use to make that happen?

Whatever character set was used to create whatever it is you've
copy/pasted from.  But that might not help if you start with a web page
(HTML uses its own way of coding for various characters) or a word
processor file (word processors use all sorts of character encodings
that mean nothing outside the program concerned).

The only reliable method of avoiding weird characters or scrambled text
in email or usenet, is to type the text yourself or at least edit it to
contain only US-ASCII or UTF-8 (whichever your newsreader is set up to
expect).

>> It'll be fun to see what happens to the character codes scrambled by
>> 'Dialog' after they've been through my newsreader and text editor.
>> 
>> I don't know if 'Dialog' can be made to handle the current usenet
>> standard character set which is UTF-8, which has a much larger range of
>> characters available (but still doesn't get around all of Microsoft's
>> silliness).
>
> Ah, UTF-8. I will try changing that in a moment as all I want to know is
> what to set Dialog to in order for the curly quotes to not be replaced with
> gobbledegook.
>
> It's that's UTF-8, is this the correct header lines to have Dialog add?
>    Mime-Version: 1.0
>    Content-Type: text/plain; charset=UTF-8
>    Content-Transfer-Encoding: 8bit
>
> The next post will be set to those settings to test out the curly quotes.

Rather than just set the headers, is there a setting to make sure that
Dialog is actually using UTF-8?  (It may be referred to as 'Unicode').
It's no use having a header that says UTF-8 if your newsreader is still
actually using something else.

The newsreader I use only sets the headers for UTF-8 if I send a message
that includes characters that aren't US-ASCII.

-- 
-- ^^^^^^^^^^
--  Whiskers
-- ~~~~~~~~~~
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262304
Author: Sqwertz
Date: Thu, 28 Sep 2017 23:23
98 lines
4459 bytes
On Wed, 27 Sep 2017 10:14:40 +0200, Michael Bäuerle wrote:

> June Bug wrote:
>> The date is 26/09/2017 17:47
>>> 
>>> What is the trick to get dialog to NOT send out cent signs in place of 
>>> curly quotes and apostrophes?
>> 
>> Wow. That last example was munged far worse than I had thought it would be.
>> 
>> Here's a simpler example that just replaces the curly quotes and
>> apostrophes with cent signs.
>> 
>> All I want is for dialog to stop doing that replacement so that Dialog
>> sends what Dialog shows and the recipient sees what I see when I'm sending
>> it.
>> 
>> 0. Here is an arbitrary web page with curly quotes.
>> <http://bgr.com/2017/09/26/macos-high-sierra-keychain-password-hack/>
>> 
>> 1. Here is what it looks like on the web page.
>>    <http://img4.imagetitan.com/img.php?image=16_quote_x.jpg>
>> 
>> 2. Here is what it looks like cut and pasted into Dialog.
>>    <http://img4.imagetitan.com/img.php?image=16_quote_y.jpg>
>> 
>> 3. But this will be all screwed up when you get it.
>> ?If I can find these bugs, obviously nation states, malicious adversaries,
>> and cybercriminals have tons more time and resources. I?m sure they?re
>> finding these bugs as well,? he added.
> 
> This was completely broken because the MIME declaration was "US-ASCII".
> 
>> How do I fix this curly-quote problem using Dialog?
> 
> I don't know much details about Dialog, but first you should check
> whether Dialog is correctly configured to handle such content at all.
> 
> If you quote the following lines:
> 
>| “If I can find these bugs, obviously nation states, malicious
>| adversaries, and cybercriminals have tons more time and resources.
>| I’m sure they’re finding these bugs as well,” he added.
> 
> this will check the internal handling of such characters. If this
> works, the problem is only copy&paste related.

When I paste this paragraph in to a Dialog composition window:
(Ignore my User-Agent header in this message)

>| “If I can find these bugs, obviously nation states, malicious
>| adversaries, and cybercriminals have tons more time and resources.
>| I’m sure they’re finding these bugs as well,” he added.

The "Status:" line in the composition window changes from "US-ASCII"
to "Charset iso-8859-13" as soon as you do the paste.

I have a slew of "Allowable charsets" defined in "General Settings ->
Charsets", as well as some disallowed ones, such as WINDOWS-* and
MAC-*

https://s26.postimg.org/n72gpvn21/Charsets.jpg

The Dialog composition windows should automatically detect the charset
being used.  Make sure those are defined.  I have not changed mine
from the default.  I have the following in my settings.ini file:

[charsetrulespergroup]
9=|^soc\.culture\.slovenia|
8=|^soc\.culture\.croatia|
7=|^soc\.culture\.ukrainian|
6=|^soc\.culture\.greek|
5=|^relcom\.|
Charset6=|ISO-8859-7|
Charset2=|ISO-8859-1|
Charset9=|ISO-8859-2|
Charset5=|KOI8-R|
Charset1=|ISO-8859-1|
Charset8=|ISO-8859-2|
Charset4=|KOI8-R|
Charset0=|ISO-8859-1|
Charset7=|WINDOWS-1251|
Charset3=|ISO-8859-1|
4=|^fido7\.|
3=|^fido\.|
2=|^dk\.|
1=|^no\.|
0=|^fr\.|
count=10

Don't ask me what any of the means! :-)

I have the whole AIOE.org domain killfiled because the admin is an
asshole and hosts mostly trolls and forgers.  So if you respond with
an AIOE Message-ID I will not see it (as I already don't see several
of the posts already to this thread).

-sw
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262306
Author: Sqwertz
Date: Thu, 28 Sep 2017 23:51
42 lines
2376 bytes
On Thu, 28 Sep 2017 18:23:07 -0500, Sqwertz wrote:

> When I paste this paragraph in to a Dialog composition window:
> (Ignore my User-Agent header in this message)
> 
>>| “If I can find these bugs, obviously nation states, malicious
>>| adversaries, and cybercriminals have tons more time and resources.
>>| I’m sure they’re finding these bugs as well,” he added.

> The "Status:" line in the composition window changes from "US-ASCII"
> to "Charset iso-8859-13" as soon as you do the paste.

And my headers on this message confirm that it used a correct charset
for those characters.

MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-13"
Content-Transfer-Encoding: 8bit

If I just type ASCII text into a new, blank composition windows, the
"Status:" line in the composition windows will change from:

Status: Not yet sent 

to:

Status: Not yet sent (Charset us-ascii)

Until I paste in this paragraph:

>>| “If I can find these bugs, obviously nation states, malicious
>>| adversaries, and cybercriminals have tons more time and resources.
>>| I’m sure they’re finding these bugs as well,” he added.

It changes to:

Status: Not yet sent (Charset iso-8859-13)

Again, I won't see any messages or responses sent from the AIOE
servers.

-sw
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262305
Author: Michael Bäuerle
Date: Fri, 29 Sep 2017 08:43
45 lines
3230 bytes
Sqwertz wrote:
> On Thu, 28 Sep 2017 18:23:07 -0500, Sqwertz wrote:
> > Michael Bäuerle wrote:
> > > 
> > When I paste this paragraph in to a Dialog composition window:
> > (Ignore my User-Agent header in this message)
> > 
> > > | “If I can find these bugs, obviously nation states, malicious
> > > | adversaries, and cybercriminals have tons more time and resources.
> > > | I’m sure they’re finding these bugs as well,” he added.
> > 
> > The "Status:" line in the composition window changes from "US-ASCII"
> > to "Charset iso-8859-13" as soon as you do the paste.
> 
> And my headers on this message confirm that it used a correct charset
> for those characters.
> 
> MIME-Version: 1.0
> Content-Type: text/plain; charset="iso-8859-13"
> Content-Transfer-Encoding: 8bit

Yes, your article looks good. ISO 8859-13 [1] provides the codes 0xA1,
0xB4 and 0xFF for the quote characters.

My newsreader cannot send ISO 8859-13, therefore the text above
should be converted back to Unicode now.

But in general using the minimum sufficient character set is the
behaviour intended by MIME. Quoted from RFC2046 [2]:
| 
| In general, composition software should always use the "lowest common
| denominator" character set possible.  For example, if a body contains
| only US-ASCII characters, it SHOULD be marked as being in the US-
| ASCII character set, not ISO-8859-1, which, like all the ISO-8859
| family of character sets, is a superset of US-ASCII.  More generally,
| if a widely-used character set is a subset of another character set,
| and a body contains only characters in the widely-used subset, it
| should be labelled as being in that subset.  This will increase the
| chances that the recipient will be able to view the resulting entity
| correctly.


__________
[1] <https://en.wikipedia.org/wiki/ISO/IEC_8859-13>
[2] <https://tools.ietf.org/html/rfc2046#section-4.1.2>
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262307
Author: Michael Bäuerle
Date: Fri, 29 Sep 2017 09:15
10 lines
1445 bytes
Sqwertz wrote:
> 
> [...]
> I have a slew of "Allowable charsets" defined in "General Settings ->
> Charsets", as well as some disallowed ones, such as WINDOWS-* and
> MAC-*
> 
> https://s26.postimg.org/n72gpvn21/Charsets.jpg

This is a nice feature of Dialog.
Re: Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent sig
#262308
Author: Sandman
Date: Fri, 29 Sep 2017 12:44
49 lines
2631 bytes
In article <oqgajq$9gr$1@gioia.aioe.org>, June Bug wrote:

> The date is 27/09/2017 06:46

> > June Bug:
> > I won't know if UTF-8 worked until I send this out and look at the
> > results. If UTF-8 doesn't work, how do I know what content types
> > have curly quotes?
> 
> UTF-8 obviously failed.

>   Mime-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit

> Since Michael's text has umlauts, let's look at his headers:
> Mime-Version: 1.0
> Content-Type: text/plain; charset=UTF-8; format=fixed
> Content-Transfer-Encoding: 8bit

> He seems to have "format=fixed", which I didn't have in that last
> post.

> I'll try Michael's headers now & cut and paste from the same
> article:
> <https://practicaltypography.com/straight-and-curly-quotes.html>

> "That's a 'magic' sock." <== straight quotes
> ¡§That¡¦s a ¡¥magic¡¦ sock.¡¨ <== curly quotes

> If that doesn't work, can someone explain *what* headers will
> preserve the curly quotes (which show up just fine here, for me, in
> my face, as I type this)?

Headers are only text, your news client need to actually support and encode 
your post in the header of choice. Look for a setting for text-encoding to 
see if you can set what encoding your client should use when sending 
articles.

It seems to read UTF8 just fine, since you haven't complained when people 
have responded with UTF8 curly quotes, so if you're lucky, it's just a 
setting.

Changing the header value manually does nothing, and indeed - that header 
value should reflect whatever encoding setting you have, not something that 
need to be set seperately.

-- 
Sandman
Re: Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent sig
#262311
Author: Jernej
Date: Fri, 29 Sep 2017 16:34
16 lines
2101 bytes
On 29 Sep 2017 12:44:45 GMT, Sandman wrote:

> It seems to read UTF8 just fine, since you haven't complained when people 
> have responded with UTF8 curly quotes, so if you're lucky, it's just a 
> setting.

Dialog should have no problems with UTF-8, and will use it to post
depending on the settings (you can't directly set a charset to use, instead
you set the preference of charsets you want to use, and Dialog will choose
the first one that covers all the characters in the message you're posting;
you can simply place UTF-8 at the top of that list).

-- 
begin  .sig
< Jernej Simon+AQ0-i+AQ0- ><>+Jco-<>< jernej|s-ng at eternallybored.org >
end
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent sign
#262309
Author: Jernej
Date: Sat, 30 Sep 2017 14:57
12 lines
1888 bytes
On Sat, 30 Sep 2017 14:54:50 -0000, Michael B+AOQ-uerle wrote:

> ... as long as no Unicode Codepoint beyond the BMP is involved.
> Something like: +2D3eHg- (U+-1F61E)

Yeah, although it appears that switching to UTF-7 works for those
characters.

-- 
begin  .sig
< Jernej Simon+AQ0-i+AQ0- ><>+Jco-<>< jernej|s-ng at eternallybored.org >
end
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262310
Author: Michael Bäuerle
Date: Sat, 30 Sep 2017 14:57
14 lines
1979 bytes
Jernej Simončič wrote:
> On 29 Sep 2017 12:44:45 GMT, Sandman wrote:
> > 
> > It seems to read UTF8 just fine, since you haven't complained when people 
> > have responded with UTF8 curly quotes, so if you're lucky, it's just a 
> > setting.
> 
> Dialog should have no problems with UTF-8, [...]

.... as long as no Unicode Codepoint beyond the BMP is involved.

Something like: 😞 (U+1F61E)
-- 
Argh. Superseded again because the original subject was still crippled.
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262312
Author: Michael Bäuerle
Date: Sat, 30 Sep 2017 15:56
16 lines
2079 bytes
Jernej Simončič wrote:
> On Sat, 30 Sep 2017 14:54:50 -0000, Michael Bäuerle wrote:
> > 
> > ... as long as no Unicode Codepoint beyond the BMP is involved.
> > Something like: 😞 (U+1F61E)
> 
> Yeah, although it appears that switching to UTF-7 works for those
> characters.

IIRC the problem is that Dialog internally uses UTF-16 and is not able
to correctly combine Surrogate Pairs while converting data to UTF-8.
The Surrogate Codepoints are still present in the UTF-8 output (but
not allowed there).

With UTF-7 the problem does not exist, because UTF-7 uses UTF-16 (with
additional Base64 transfer encoding as part of the UTF).
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262315
Author: June Bug
Date: Sun, 01 Oct 2017 02:08
25 lines
2000 bytes
The date is 29/09/2017 02:15

>> I have a slew of "Allowable charsets" defined in "General Settings ->
>> Charsets", as well as some disallowed ones, such as WINDOWS-* and
>> MAC-*
>> 
>> https://s26.postimg.org/n72gpvn21/Charsets.jpg
> 
> This is a nice feature of Dialog.

I'm very confused why Dialog isn't selecting the correct "thing" when I
send a message that has the curly quotes list this ("’") from
 <https://practicaltypography.com/straight-and-curly-quotes.html>

I can't fix it until I understand two things:
1. What "should" the "charset" be set to?
2. Where in Dialog is that "charset" chosen?

This is the test I have been running:
a. "That's a 'magic' sock." <=== straight quotes
b. “That’s a ‘magic’ sock.” <=== curly quotes at Charset big5

Should "Charset iso-8859-13" work for curly quotes?
Or should Dialog be set to Charset big5?
Or what?
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262314
Author: June Bug
Date: Sun, 01 Oct 2017 02:12
25 lines
2002 bytes
The date is 29/09/2017 02:15

>> I have a slew of "Allowable charsets" defined in "General Settings ->
>> Charsets", as well as some disallowed ones, such as WINDOWS-* and
>> MAC-*
>> 
>> https://s26.postimg.org/n72gpvn21/Charsets.jpg
> 
> This is a nice feature of Dialog.

I'm very confused why Dialog isn't selecting the correct "thing" when I 
send a message that has the curly quotes list this (¡¦) from
 <https://practicaltypography.com/straight-and-curly-quotes.html>

I can't fix it until I understand two things:
1. What "should" the "charset" be set to?
2. Where in Dialog is that "charset" chosen?

This is the test I have been running:
a. "That's a 'magic' sock." <=== straight quotes
b. ¡§That¡¦s a ¡¥magic¡¦ sock.¡¨ <=== curly quotes at Charset utf-8

Should "Charset iso-8859-13" work for curly quotes?
Or should Dialog be set to Charset utf-8?
Or what?
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262313
Author: June Bug
Date: Sun, 01 Oct 2017 02:15
9 lines
1380 bytes
The date is 30/09/2017 19:12

> Should "Charset iso-8859-13" work for curly quotes?
> Or should Dialog be set to Charset utf-8?
> Or what?


"That's a 'magic' sock."
”§That”¦s a ”„magic”¦ sock.”Ø <=== curly quotes at Charset iso-8859-13
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262317
Author: June Bug
Date: Sun, 01 Oct 2017 02:36
24 lines
1972 bytes
The date is 28/09/2017 16:23

> I have a slew of "Allowable charsets" defined in "General Settings ->
> Charsets", as well as some disallowed ones, such as WINDOWS-* and
> MAC-*

I still don't understand what happens but I do now know that Dialog does a
"Not yet sent" character-set suggestion while I am typing.
  http://www.bild.me/bild.php?file=2799928charsets_0.jpg

I have never touched the "General Settings > Charsets" settings as I do not
understand this entire process.
  http://www.bild.me/bild.php?file=8391700charsets_1.jpg

Where in the process is the correct header set?

Now I will cut and paste the curly quote article again.
 https://practicaltypography.com/straight-and-curly-quotes.html
"That's a 'magic' sock."
“That’s a ‘magic’ sock.”

Right now the "Not yet sent" says "(Charset big5)").
Is that what is supposed to be there?
How does Dialog figure all this out on its own?
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262318
Author: June Bug
Date: Sun, 01 Oct 2017 02:41
17 lines
1723 bytes
The date is 30/09/2017 19:36

> Now I will cut and paste the curly quote article again.
>  https://practicaltypography.com/straight-and-curly-quotes.html
> "That's a 'magic' sock."
> “That’s a ‘magic’ sock.”

Now I am trying to set the headers to the correct headers.
 https://practicaltypography.com/straight-and-curly-quotes.html

"That's a 'magic' sock."
“That’s a ‘magic’ sock.” <--- header is set to charset big5

How do I know what to set the header to?
Do I look at the "not yet sent" line (which I had never noticed before)?

Where does Dialog get the "brains" to know what to put in not-yet-sent?
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262319
Author: June Bug
Date: Mon, 02 Oct 2017 01:42
23 lines
1822 bytes
The date is 30/09/2017 19:41

> Where does Dialog get the "brains" to know what to put in not-yet-sent?

I guess I am supposed to be the brains! :)
Too bad I'm not. 

Anyway, here's a simple test.

1. I go to this page: 
 <https://practicaltypography.com/straight-and-curly-quotes.html>

2. I look at my "Not yet sent" which says it's "Charset us-ascii")

3. I cut-and-paste the curly quote example:
"That's a 'magic' sock." <== straight quotes
¡§That¡¦s a ¡¥magic¡¦ sock.¡¨ <== curly quotes

4. I notice that my "Not yet sent" says "Charset big5").

5. I set my headers to say "Charset us-ascii" & I send this test.

I will have to wait and see if this process shows curly quotes or not.
Re: Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent sig
#262320
Author: Sandman
Date: Mon, 02 Oct 2017 07:33
34 lines
1983 bytes
In article <oqs5iq$1hoo$1@gioia.aioe.org>, June Bug wrote:

> The date is 30/09/2017 19:41

> > June Bug:
> > Where does Dialog get the "brains" to know what to put in
> > not-yet-sent?
> 
> I guess I am supposed to be the brains! :)
> Too bad I'm not.

> Anyway, here's a simple test.

> 1. I go to this page: 
> <https://practicaltypography.com/straight-and-curly-quotes.html>

> 2. I look at my "Not yet sent" which says it's "Charset us-ascii")

> 3. I cut-and-paste the curly quote example:
> "That's a 'magic' sock." <== straight quotes
> ¡§That¡¦s a ¡¥magic¡¦ sock.¡¨ <== curly quotes

> 4. I notice that my "Not yet sent" says "Charset big5").

> 5. I set my headers to say "Charset us-ascii" & I send this test.

> I will have to wait and see if this process shows curly quotes or
> not.

"big5" is chinese, so your client is not that good at guessing charset 
encodings. Why can't you tell it to encode as utf8?

-- 
Sandman
Re: Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent sig
#262321
Author: June Bug
Date: Mon, 02 Oct 2017 13:20
26 lines
2096 bytes
The date is 02/10/2017 00:33

>> I will have to wait and see if this process shows curly quotes or
>> not.
> 
> "big5" is chinese, so your client is not that good at guessing charset 
> encodings. Why can't you tell it to encode as utf8?

I wish that would work!
I agree with you that Dialog picks "big5".

Is Big5 the right content type? 
I don't know. I really don't.

But when I set it to UTF-8, it fails as it will in this test below:
<https://practicaltypography.com/straight-and-curly-quotes.html>
"That's a 'magic' sock." <== straight quotes
¡§That¡¦s a ¡¥magic¡¦ sock.¡¨ <== curly quotes

I think setting the header does nothing.
I think someone said the trick is to get Dialog to do the right thing.

But if my Dialog newsreader is setting the header to "Content Type= big5",
how do I tell Dialog to set the header to UTF-8 and have it actually work?

The header above will be UTF-8 but it won't work as we already tested that.
Re: Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent sig
#262324
Author: Jernej
Date: Mon, 02 Oct 2017 21:22
15 lines
2007 bytes
On Mon, 2 Oct 2017 13:20:20 +-0000 (UTC), June Bug wrote:

> I think setting the header does nothing.

Don't change the header manually - that'll result in a corrupted message.

> I think someone said the trick is to get Dialog to do the right thing.

Go to Settings -> General settings -> Charsets and remove everything except
UTF-8 and US-ASCII from the Allowed list.

-- 
begin  .sig
< Jernej Simon+AQ0-i+AQ0- ><>+Jco-<>< jernej|s-ng at eternallybored.org >
end
Re: Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent sig
#262322
Author: June Bug
Date: Mon, 02 Oct 2017 23:37
110 lines
3573 bytes
The date is 02/10/2017 14:22

>> I think setting the header does nothing.
> 
> Don't change the header manually - that'll result in a corrupted message.

I agree with you that changing the header manually does nothing useful.
This is like how a solid goes to a liquid and then to a gas.
I wish I knew WHERE the content type switches from "us-ascii" to "utf-8".

It doesn't switch to UTF-8 in the header that is sent ot the news server. 
So it must switch at some point *before* the message is sent to the server.

>> I think someone said the trick is to get Dialog to do the right thing.
> 
> Go to Settings -> General settings -> Charsets and remove everything except
> UTF-8 and US-ASCII from the Allowed list.

Here is what the Settings > General settings > Charsets has before I make
any changes.

Dialog: Settings: General Settings > Charsets

Default charsets for groups (applies to viewing only):
 ISO-8859-1 ^fr\.
 ISO-8859-1 ^no\.
 ISO-8859-1 ^dk\.
 ISO-8859-1 ^fido\.
 KOI8-R ^fido7\.
 KOI8-R ^relcom\.
 ISO-8859-7 ^soc\.culture\.greek
 WINDOWS-1251 ^soc\.culture\.ukrainian
 ISO-8859-2 ^soc\.culture\.croatia
 ISO-8859-2 ^soc\.culture\.slovenia

Allowed charsets for your postings:
 us-ascii
 iso-8859-1
 iso-8859-2
 iso-8859-3
 iso-8859-4
 iso-8859-5
 iso-8859-6
 iso-8859-7
 iso-8859-8
 iso-8859-9
 iso-8859-10
 iso-8859-13
 iso-8859-14
 iso-8859-15
 iso-8859-16
 koi8-r
 koi8-ru
 koi8-u
 big5
 utf-8
 utf-7
 big5-hkscs
 gb2312
 hz-gb-2312
 iso-2022-jp
 shift_jis
 jis-x0201
 gb18030
 euc-cn
 euc-jp
 euc-kr
 euc-tw
 johab

Forbidden charsets:
 cp1133
 windows-1250
 windows-1251
 windows-1252
 windows-1253
 windows-1254
 windows-1255
 windows-1256
 windows-1257
 windows-1258
 cp850
 cp862
 cp866
 cp874
 cp932
 cp949
 cp950
 x-mac-roman
 x-mac-iceland
 x-mac-hebrew
 x-mac-greek
 x-mac-cyrillic
 x-mac-croatian
 x-mac-ce
 x-mac-arabic
 x-mac-ukraine
 x-mac-turkish
 x-mac-thai
 x-mac-romania
 
Email encoding for non US-Ascii messages:
 Allow 8-bit characters in emails
 Always use Quoted-Printable <== this is selected
 Always use Quoted-Printable, but allow UTF-7
 Always use UTF-7
 
Given the list above, can you confirm you want me to delete everything in
the "Allowed charsets for your postings:" list except "us-ascii" and
"utf-8"?
Re: Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent sig
#262323
Author: June Bug
Date: Mon, 02 Oct 2017 23:42
20 lines
1969 bytes
The date is 02/10/2017 16:37

> Given the list above, can you confirm you want me to delete everything in
> the "Allowed charsets for your postings:" list except "us-ascii" and
> "utf-8"?

This is what I have now in the allowed charsets for postings:
 
Allowed charsets for your postings:
 us-ascii
 utf-8

Let's run the test where the "not yet sent" is currently (Charset
us-ascii), but it will change when I paste from this site:
 <https://practicaltypography.com/straight-and-curly-quotes.html>
"That's a 'magic' sock." <-- straight quotes
“That’s a ‘magic’ sock.” <-- curly quotes

When I pasted that, the "Not yet sent" went from "us-ascii" to "utf-8".
Now let's send this to see what happens.
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262325
Author: June Bug
Date: Tue, 03 Oct 2017 08:58
27 lines
2207 bytes
The date is 30/09/2017 15:56

> IIRC the problem is that Dialog internally uses UTF-16 and is not able
> to correctly combine Surrogate Pairs while converting data to UTF-8.
> The Surrogate Codepoints are still present in the UTF-8 output (but
> not allowed there).
> 
> With UTF-7 the problem does not exist, because UTF-7 uses UTF-16 (with
> additional Base64 transfer encoding as part of the UTF).

Does this mean I should change what I currently have in the 
Settings > General settings > Charsets 

To add the following "Allowed charsets for your postings"
FROM: 
us-ascii
utf-8

TO: 
us-ascii
utf-7
utf-8

Here is a test of that latest setting above:
<https://practicaltypography.com/straight-and-curly-quotes.html>
"That's a 'magic' sock." <-- straight quotes
+IBw-That+IBk-s a +IBg-magic+IBk- sock.+IB0- <-- curly quotes
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262326
Author: Michael Bäuerle
Date: Tue, 03 Oct 2017 13:30
32 lines
2494 bytes
June Bug wrote:
> The date is 30/09/2017 15:56
> > 
> > IIRC the problem is that Dialog internally uses UTF-16 and is not able
> > to correctly combine Surrogate Pairs while converting data to UTF-8.
> > The Surrogate Codepoints are still present in the UTF-8 output (but
> > not allowed there).
> > 
> > With UTF-7 the problem does not exist, because UTF-7 uses UTF-16 (with
> > additional Base64 transfer encoding as part of the UTF).
> 
> Does this mean I should change what I currently have in the 
> Settings > General settings > Charsets 
> 
> To add the following "Allowed charsets for your postings"
> FROM: 
> us-ascii
> utf-8
> 
> TO: 
> us-ascii
> utf-7
> utf-8

IMHO yes (because of the UTF-8 bug in Dialog). 

> Here is a test of that latest setting above:
> <https://practicaltypography.com/straight-and-curly-quotes.html>
> "That's a 'magic' sock." <-- straight quotes
> “That’s a ‘magic’ sock.” <-- curly quotes

Looks good.
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent sig
#262327
Author: Whiskers
Date: Tue, 03 Oct 2017 14:17
32 lines
2655 bytes
On 2017-10-03, June Bug <junebug55001@inbox.com> wrote:
> The date is 02/10/2017 16:37
>
>> Given the list above, can you confirm you want me to delete everything in
>> the "Allowed charsets for your postings:" list except "us-ascii" and
>> "utf-8"?
>
> This is what I have now in the allowed charsets for postings:
>  
> Allowed charsets for your postings:
>  us-ascii
>  utf-8
>
> Let's run the test where the "not yet sent" is currently (Charset
> us-ascii), but it will change when I paste from this site:
>  <https://practicaltypography.com/straight-and-curly-quotes.html>
> "That's a 'magic' sock." <-- straight quotes
> “That’s a ‘magic’ sock.” <-- curly quotes
>
> When I pasted that, the "Not yet sent" went from "us-ascii" to "utf-8".
> Now let's send this to see what happens.

That seems to do the trick.  

Are you still using your manually set headers?  It would be better to
let Dialog set them automatically so that they match what Dialog is
actually doing.

-- 
-- ^^^^^^^^^^
--  Whiskers
-- ~~~~~~~~~~
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262328
Author: June Bug
Date: Tue, 03 Oct 2017 15:15
33 lines
2761 bytes
The date is 03/10/2017 13:30

> IMHO yes (because of the UTF-8 bug in Dialog). 
> 
>> Here is a test of that latest setting above:
>> <https://practicaltypography.com/straight-and-curly-quotes.html>
>> "That's a 'magic' sock." <-- straight quotes
>> +IBw-That+IBk-s a +IBg-magic+IBk- sock.+IB0- <-- curly quotes
> 
> Looks good.

Thanks Michael B+AOQ-uerle & Jernej Simon+AQ0-i+AQ0-

When I reply to you, I see my "Not yet sent" is set to "Charset utf-7").

I readily admit I really do not understand these "charsets" things since I
only use whatever is on my (American) keyboard and I never have to deal
with charsets except when I cut and paste something off another document.

(I also have to deal with it when I encounter your last name!) :)

I don't care *what* the charset header says though, so if utf-8 is
deprecated, then I'll remove it from the possible Dialog character sets.

At the moment, all I have in my allowed charsets is "us-ascii" and "utf-7".
Since I only use my (American) keyboard, and since I wouldn't know how to
type a special character if my life depended on it, is there any reason for
anyone on Dialog in America just talking normal casual Usenet conversation
(not professional marketing or legal documents) to need/want more than
these two?

 us-ascii
 utf-7
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262329
Author: Michael Bäuerle
Date: Tue, 03 Oct 2017 16:04
43 lines
3463 bytes
June Bug wrote:
> 
> [...]
> Thanks Michael Bäuerle & Jernej Simončič
> 
> When I reply to you, I see my "Not yet sent" is set to "Charset utf-7").
> 
> I readily admit I really do not understand these "charsets" things since I
> only use whatever is on my (American) keyboard and I never have to deal
> with charsets except when I cut and paste something off another document.
> 
> (I also have to deal with it when I encounter your last name!) :)
> 
> I don't care *what* the charset header says though, so if utf-8 is
> deprecated, then I'll remove it from the possible Dialog character sets.

UTF-8 is not deprecated. I have recommended UTF-7 for Dialog only
(because Dialog has a bug with UTF-8).
The opposite is true: Normally UTF-8 is preferred.

In general news articles are transported via 8bit-clean protocols like
NNTP. UTF-7 (an Unicode Transformation Format created explicitly for
7-bit protocols like SMTP) is not required in such cases - as long as
the software can handle UTF-8 correctly (not the case for Dialog).

> At the moment, all I have in my allowed charsets is "us-ascii" and "utf-7".
> Since I only use my (American) keyboard, and since I wouldn't know how to
> type a special character if my life depended on it, is there any reason for
> anyone on Dialog in America just talking normal casual Usenet conversation
> (not professional marketing or legal documents) to need/want more than
> these two?
> 
>  us-ascii

This as the first entry is always a good idea. If the content can
be encoded with US-ASCII, it should not be labeled as something else
that is a superset of US-ASCII.

>  utf-7

With Unicode likely all relevant scripts can be encoded. Every UTF can
represent all defined Unicode Codepoints. Therefore yes, UTF-7 will be
sufficient (if the recipients software can decode it).
Re: Re: Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent
#262330
Author: Sandman
Date: Tue, 03 Oct 2017 16:31
46 lines
2734 bytes
In article <oqteek$1jq8$1@gioia.aioe.org>, June Bug wrote:

> The date is 02/10/2017 00:33

> > > June Bug:
> > > I will have to wait and see if this process shows curly quotes
> > > or not.
> > 
> > Sandman:
> > "big5" is chinese, so your client is not that good at guessing
> > charset encodings. Why can't you tell it to encode as utf8?
> 
> I wish that would work!
> I agree with you that Dialog picks "big5".

> Is Big5 the right content type? 
> I don't know. I really don't.

> But when I set it to UTF-8, it fails as it will in this test below:
> <https://practicaltypography.com/straight-and-curly-quotes.html>
> "That's a 'magic' sock." <== straight quotes
> ¡§That¡¦s a ¡¥magic¡¦ sock.¡¨ <== curly quotes

> I think setting the header does nothing. I think someone said the
> trick is to get Dialog to do the right thing.

> But if my Dialog newsreader is setting the header to "Content Type=
> big5", how do I tell Dialog to set the header to UTF-8 and have it
> actually work?

> The header above will be UTF-8 but it won't work as we already
> tested that.

Like I said, the header means nothing. I.e. you can set it to "CatSpawn" if 
you like, but if your news client send it encoded as big5 or US-ASCII or 
whatever, that header is just text.

Any proper news client should be able to be user-configured to set what text-
encoding it should use for posting articles, and then *it* should set the 
header accordingly. 

What you have now is a discrepancy between what your news client uses to 
encode the text and what you manually set as the text encoding.

-- 
Sandman
Re: Re: Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent
#262331
Author: Sandman
Date: Tue, 03 Oct 2017 16:33
28 lines
2070 bytes
In article <oquitn$1m8i$1@gioia.aioe.org>, June Bug wrote:

> The date is 02/10/2017 16:37

> > June Bug:
> > Given the list above, can you confirm you want me to delete
> > everything in the "Allowed charsets for your postings:" list
> > except "us-ascii" and "utf-8"?
> 
> This is what I have now in the allowed charsets for postings:

> Allowed charsets for your postings:
> us-ascii
> utf-8

> Let's run the test where the "not yet sent" is currently (Charset
> us-ascii), but it will change when I paste from this site:
> <https://practicaltypography.com/straight-and-curly-quotes.html>
> "That's a 'magic' sock." <-- straight quotes
> “That’s a ‘magic’ sock.” <-- curly quotes

> When I pasted that, the "Not yet sent" went from "us-ascii" to
> "utf-8". Now let's send this to see what happens.

Congratulations :)

-- 
Sandman
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262332
Author: June Bug
Date: Wed, 04 Oct 2017 16:46
29 lines
2637 bytes
The date is 03/10/2017 16:04

> UTF-8 is not deprecated. I have recommended UTF-7 for Dialog only
> (because Dialog has a bug with UTF-8).
> The opposite is true: Normally UTF-8 is preferred.

Thank you for the confirmation that UTF-8 is normally preferred.

Can someone summarize *how* the "charset" encoding "happens" with Dialog?

Here's my stab but I can (and probably am) be wrong, where I assume only
the allowed charsets in Dialog (in this order) of:
a. us-ascii
b. utf-7
c. utf-8 

1. You start a new post and type the letter "x".
2. Dialog's "Not yet sent" figures out it's "us-ascii".
3. You send that post
4. Dialog "does something" to "something, encode perhaps?" the post as
"us-ascii" and Dialog adds a header saying "charset=us-ascii".
5. The news server receives that post and those headers.
6. The news server provides that post and those headers to other servers.
7. At some point someone uploads that post
8. Their newsreader reads the header and "interprets?" the body as
us-ascii.

Is that what happens (specifically, where does the charset actually
matter?)?
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262333
Author: Jernej
Date: Wed, 04 Oct 2017 18:04
13 lines
2322 bytes
On Wed, 4 Oct 2017 16:46:21 +-0000 (UTC), June Bug wrote:

> Can someone summarize *how* the "charset" encoding "happens" with Dialog?

Dialog always uses Unicode (UTF-16) internally. When sending, it looks at
your list of allowed charsets, and chooses the first one that can
accommodate all characters you used, then converts your message to that
charset and sends it.

-- 
begin  .sig
< Jernej Simon+AQ0-i+AQ0- ><>+Jco-<>< jernej|s-ng at eternallybored.org >
end
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262334
Author: June Bug
Date: Thu, 05 Oct 2017 04:25
14 lines
2224 bytes
The date is 04/10/2017 11:04

> Dialog always uses Unicode (UTF-16) internally. When sending, it looks at
> your list of allowed charsets, and chooses the first one that can
> accommodate all characters you used, then converts your message to that
> charset and sends it.

Thanks. I guess that Dialog, when it converts the message to that charset,
it then sets the header to that charset that it converted the message to.

Then I guess the newsreader on the other side of the equation which reads
the message uses that header to figure out what the charset is?

Is that correct with respect to the headers?
Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
#262335
Author: Michael Bäuerle
Date: Thu, 05 Oct 2017 08:42
43 lines
3735 bytes
June Bug wrote:
> The date is 04/10/2017 11:04
> > 
> > Dialog always uses Unicode (UTF-16) internally. When sending, it looks at
> > your list of allowed charsets, and chooses the first one that can
> > accommodate all characters you used, then converts your message to that
> > charset and sends it.
> 
> Thanks. I guess that Dialog, when it converts the message to that charset,
> it then sets the header to that charset that it converted the message to.
> 
> Then I guess the newsreader on the other side of the equation which reads
> the message uses that header to figure out what the charset is?
> 
> Is that correct with respect to the headers?

Yes. The MIME headerfields are labels, which the receiving newsreader
uses to interpret the encoding of the body (normally this means it uses
the label from the header as the source and its own internal encoding
as the target encoding of a conversion operation on the body).

Because the labels in the MIME headerfields are valid only for the body,
a different system is used to encode characters (that cannot be encoded
with US-ASCII) inside the header itself, e.g. in the From or Subject
headerfields. This mechanism uses encoded-words according to RFC 2047:
<https://tools.ietf.org/html/rfc2047>
With this mechanism every encoded-word has directly attached its own
labels. Because 8bit data is not allowed in the header, encoded-words
always use a non-identity Transfer-Encoding ("Q" means Quoted-Printable
and "B" means Base64) on top. Example:

   =?ISO-8859-13?Q?=B4Test=A1?=
     ^^^^^^^^^^^ ^ ^^^^^^^^^^
          |      |     |
          |      |     +--------------> Data
          |      +--------------------> Transfer-Encoding
          +---------------------------> Charset

[Quotation mark is used as the field separator]

should be decoded by the receiving newsreader to:

   “Test”
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads