Re: Re: not recognizing accented character in subject line

"'Chip' [email protected] [blat]" <[email protected]> Sat, 6 Apr 2019 13:03:34 -0500
Newsgroups gmane.mail.blat
Message-ID <9AA4A4567947421889E9E581DEED7086@chip>
------=_NextPart_000_0006_01D4EC79.2499BC80
Content-Type: text/plain;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

If you need to run as a batch file, then put your subject line into a text =
file saved as Unicode or UTF-8, and tell Blat to get the subject line from =
that text file using the =E2=80=93sf option.  This will preserve the accent=
ed character as intended.

On my side, I added some debugging statements moments ago to print the indi=
vidual characters for each option given to Blat, so I can know what Blat is=
 given when I key in the text versus using a batch file.  Here are the resu=
lts:

Argument #8 is your subject line shown below, in hex form, as seen when I t=
yped at the command prompt:
argv[ 8] =3D 0041 0076 0069 0073 0020 0069 006D 0070 006F 0072 0074 0061 00=
6E 0074 0020 0061 0075 0020 0073 0075 006A 0065 0074 0020 00C9 006E 0065 00=
72 0067 0069 0065 0000

Argument #8 is your subject line shown below, in hex form, as seen from a U=
TF-8 batch file:
argv[ 8] =3D 0041 0076 0069 0073 0020 0069 006D 0070 006F 0072 0074 0061 00=
6E 0074 0020 0061 0075 0020 0073 0075 006A 0065 0074 0020 251C 00EB 006E 00=
65 0072 0067 0069 0065 0000

Argument #8 is your subject line shown below, in hex form, as seen from an =
ANSI batch file:
argv[ 8] =3D 0041 0076 0069 0073 0020 0069 006D 0070 006F 0072 0074 0061 00=
6E 0074 0020 0061 0075 0020 0073 0075 006A 0065 0074 0020 2554 006E 0065 00=
72 0067 0069 0065 0000

The above output shows the accented character typed on the command line dif=
fers from what Windows parses from a batch file.  This explains why typing =
directly from the command prompt works, while trying to send accented chara=
cters within a batch file does not.  The hex value 00C9 is your accented ch=
aracter when typed directly at the command prompt.

I am running on Windows 7 64-bit with US keyboard and code page.

Chip


From: mailto:[email protected]=20
Sent: Saturday, April 06, 2019 1:47 AM
To: [email protected]=20
Subject: [blat] Re: not recognizing accented character in subject line




okay I could not wait... logged on to try it out...=20

here is the log file as a batch file:
blat C:\out\EMAIL\LETTER_Chris.htm -html -s "Avis important au sujet =C3=89=
nergie"  -attach LETTER_Chris.PDF  -to <myemail> -f <sending email>


Sending C:\out\EMAIL\LETTER_Chris.htm to <email address>
Subject: Avis important au sujet +nergie
Attached binary file: letter.pdf
Try number 1 of 5.


then if I do it from the command line...
Subject: Avis important au sujet =E2=95=94nergie


hmmm but in the actual email inbox
Avis important au sujet =C3=89nergie



hmmm... good catch. What does this mean re running it as a batch vs command=
 line, command line does not display on the screen correctly in the log par=
t in CMD window but looks correct in Gmail at least.


I run the command batch from another command batch so I can get a log file:=
=20
email.bat >> email_Letters.log


I tried running just the email.bat as administrator just for fun... no diff=
erence vs running as batch file.

thoughts? you are on the right track re command line vs batch file but need=
 to run as a batch file. is there a flag or setting or some other way I am =
missing?

thanks
chris

------=_NextPart_000_0006_01D4EC79.2499BC80
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/htm=
l4/strict.dtd">
<html>
<head>
</head>






=20
<body style=3D"background-color: #fff;">
<span style=3D"display:none">&nbsp;</span>

<!--~-|**|PrettyHtmlStartT|**|-~-->
<div id=3D"ygrp-mlmsg" style=3D"position:relative;">
  <div id=3D"ygrp-msg" style=3D"z-index: 1;">
<!--~-|**|PrettyHtmlEndT|**|-~-->

    <div id=3D"ygrp-text" >
=20=20=20=20=20=20
=20=20=20=20=20=20
      <p>

<DIV dir=3D"ltr">
<DIV style=3D"FONT-SIZE: 10pt;FONT-FAMILY: 'Verdana';COLOR: #000000;">
<DIV style=3D"FONT-SIZE: small;TEXT-DECORATION: none;FONT-FAMILY: &quot;Cal=
ibri&quot;;FONT-WEIGHT: normal;COLOR: #000000;FONT-STYLE: normal;">
<DIV dir=3D"ltr">
<DIV style=3D"FONT-SIZE: 10pt;FONT-FAMILY: 'Verdana';COLOR: #000000;">
<DIV>If you need to run as a batch file, then put your subject line into a =
text=20
file saved as Unicode or UTF-8, and tell Blat to get the subject line from =
that=20
text file using the =E2=80=93sf option.&nbsp; This will preserve the accent=
ed character=20
as intended.</DIV>
<DIV>&nbsp;</DIV>
<DIV>On my side, I added some debugging statements moments ago to print the=
=20
individual characters for each option given to Blat, so I can know what Bla=
t is=20
given when I key in the text versus using a batch file.&nbsp; Here are the=
=20
results:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Argument #8 is your subject line shown below, in hex form, as seen whe=
n I=20
typed at the command prompt:</DIV>
<DIV>argv[ 8] =3D 0041 0076 0069 0073 0020 0069 006D 0070 006F 0072 0074 00=
61 006E=20
0074 0020 0061 0075 0020 0073 0075 006A 0065 0074 0020 00C9 006E 0065 0072 =
0067=20
0069 0065 0000</DIV>
<DIV>&nbsp;</DIV>
<DIV>Argument #8 is your subject line shown below, in hex form, as seen fro=
m a=20
UTF-8 batch file:</DIV>
<DIV>argv[ 8] =3D 0041 0076 0069 0073 0020 0069 006D 0070 006F 0072 0074 00=
61 006E=20
0074 0020 0061 0075 0020 0073 0075 006A 0065 0074 0020 251C 00EB 006E 0065 =
0072=20
0067 0069 0065 0000</DIV>
<DIV>&nbsp;</DIV>
<DIV>Argument #8 is your subject line shown below, in hex form, as seen fro=
m an=20
ANSI batch file:</DIV>
<DIV>argv[ 8] =3D 0041 0076 0069 0073 0020 0069 006D 0070 006F 0072 0074 00=
61 006E=20
0074 0020 0061 0075 0020 0073 0075 006A 0065 0074 0020 2554 006E 0065 0072 =
0067=20
0069 0065 0000</DIV>
<DIV>&nbsp;</DIV>
<DIV>The above output shows the accented character typed on the command lin=
e=20
differs from what Windows parses from a batch file.&nbsp; This explains why=
=20
typing directly from the command prompt works, while trying to send accente=
d=20
characters within a batch file does not.&nbsp; The hex value 00C9 is your=20
accented character when typed directly at the command prompt.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am running on Windows 7 64-bit with US keyboard and code page.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Chip</DIV>
<DIV>&nbsp;</DIV>
<DIV style=3D"FONT-SIZE: small;TEXT-DECORATION: none;FONT-FAMILY: &quot;Cal=
ibri&quot;;FONT-WEIGHT: normal;COLOR: #000000;FONT-STYLE: normal;">
<DIV style=3D"FONT: 10pt tahoma;">
<DIV><FONT face=3D"Verdana"></FONT>&nbsp;</DIV>
<DIV style=3D"BACKGROUND: #f5f5f5;">
<DIV><B>From:</B> <A title=3D"[email protected]" href=3D"mailto:blat@yah=
oogroups.com">mailto:[email protected]</A> </DIV>
<DIV><B>Sent:</B> Saturday, April 06, 2019 1:47 AM</DIV>
<DIV><B>To:</B> <A title=3D"[email protected]" href=3D"mailto:blat@yahoo=
groups.com">[email protected]</A> </DIV>
<DIV><B>Subject:</B> [blat] Re: not recognizing accented character in subje=
ct=20
line</DIV></DIV></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV style=3D"FONT-SIZE: small;TEXT-DECORATION: none;FONT-FAMILY: &quot;Cal=
ibri&quot;;FONT-WEIGHT: normal;COLOR: #000000;FONT-STYLE: normal;"><BR><BR>=
<!-- |**|end egp html banner|**| -->
<DIV dir=3D"ltr">
<DIV dir=3D"ltr">
<DIV dir=3D"ltr">
<DIV dir=3D"ltr">
<DIV dir=3D"ltr">
<DIV dir=3D"ltr">
<DIV dir=3D"ltr">okay I could not wait... logged on to try it out...=20
<DIV>&nbsp;</DIV>
<DIV>here is the log file as a batch file:</DIV>
<DIV>
<DIV>blat C:\out\EMAIL\LETTER_Chris.htm -html -s "Avis important au sujet=20
=C3=89nergie"&nbsp; -attach LETTER_Chris.PDF&nbsp; -to &lt;myemail&gt; -f &=
lt;sending=20
email&gt;</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>Sending C:\out\EMAIL\LETTER_Chris.htm to &lt;email address&gt;</DIV>
<DIV><B>Subject: Avis important au sujet &#43;nergie</B></DIV>
<DIV>Attached binary file: letter.pdf</DIV>
<DIV>Try number 1 of 5.</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>then if I do it from the command line...</DIV>
<DIV><B>Subject: Avis important au sujet =E2=95=94nergie</B><BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>hmmm but in the actual email inbox</DIV>
<DIV><SPAN style=3D"FONT-SIZE: 22px;FONT-FAMILY: &quot;Google Sans&quot;,ro=
boto,robotodraft,helvetica,arial,sans-serif;COLOR: rgb(32,33,36);">Avis=20
important au sujet =C3=89nergie</SPAN><BR></DIV>
<DIV><SPAN style=3D"FONT-SIZE: 22px;FONT-FAMILY: &quot;Google Sans&quot;,ro=
boto,robotodraft,helvetica,arial,sans-serif;COLOR: rgb(32,33,36);"><BR></SP=
AN></DIV>
<DIV>hmmm... good catch. What does this mean re running it as a batch vs co=
mmand=20
line, command line does not display on the screen correctly in the log part=
 in=20
CMD window but looks correct in Gmail at least.<SPAN style=3D"FONT-SIZE: 22=
px;FONT-FAMILY: &quot;Google Sans&quot;,roboto,robotodraft,helvetica,arial,=
sans-serif;COLOR: rgb(32,33,36);"><BR></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV>I run the command batch from another command batch so I can get a log =
file:=20
</DIV>
<DIV>email.bat &gt;&gt; email_Letters.log<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>I tried running just the email.bat as administrator just for fun... no=
=20
difference vs running as batch file.</DIV>
<DIV>&nbsp;</DIV>
<DIV>thoughts? you are on the right track re command line vs batch file but=
 need=20
to run as a batch file. is there a flag or setting or some other way I am=20
missing?</DIV>
<DIV>&nbsp;</DIV>
<DIV>thanks</DIV>
<DIV>chris</DIV>
<DIV><FONT size=3D"2" face=3D"Verdana"></FONT>&nbsp;</DIV></DIV></DIV></DIV=
></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV>
</p>

    </div>
=20=20=20=20=20

    <!--~-|**|PrettyHtmlStart|**|-~-->
    <div style=3D"color: #fff; height: 0;">__._,_.___</div>

=20=20=20=20=20=20=20=20=20=20
=20=20
=20

=20=20=20=20
    <div style=3D"clear:both"> </div>

    <div id=3D"fromDMARC" style=3D"margin-top: 10px;">
        <hr style=3D"height:2px ; border-width:0; color:#E3E3E3; background=
-color:#E3E3E3;">
        Posted by: &quot;Chip&quot; &lt;[email protected]&gt;        =
<hr style=3D"height:2px ; border-width:0; color:#E3E3E3; background-color:#=
E3E3E3;">
     </div>
    <div style=3D"clear:both"> </div>

    <table cellspacing=3D4px style=3D"margin-top: 10px; margin-bottom: 10px=
; color: #2D50FD;">
      <tbody>
        <tr>
          <td style=3D"font-size: 12px; font-family: arial; font-weight: bo=
ld; padding: 7px 5px 5px;"  >
                          <a style=3D"text-decoration: none; color: #2D50FD=
" href=3D"https://groups.yahoo.com/neo/groups/blat/conversations/messages/1=
4081;_ylc=3DX3oDMTJwNjRwMGVrBF9TAzk3MzU5NzE0BGdycElkAzMxMTEzNwRncnBzcElkAzE=
3MDUwMDczODkEbXNnSWQDMTQwODEEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxNTU0NTczODIx?a=
ct=3Dreply&messageNum=3D14081">Reply via web post</a>
                      </td>
          <td>&bull;</td>
          <td style=3D"font-size: 12px; font-family: arial; padding: 7px 5p=
x 5px;" >
            <a href=3D"mailto:[email protected]?subject=3DRe%3A%20%5B=
blat%5D%20Re%3A%20not%20recognizing%20accented%20character%20in%20subject%2=
0line" style=3D"text-decoration: none; color: #2D50FD;">
               Reply to sender            </a>
          </td>
          <td>&bull;</td>
          <td style=3D"font-size: 12px; font-family: arial; padding: 7px 5p=
x 5px;">
            <a href=3D"mailto:[email protected]?subject=3DRe%3A%20%5Bbla=
t%5D%20Re%3A%20not%20recognizing%20accented%20character%20in%20subject%20li=
ne" style=3D"text-decoration: none; color: #2D50FD">
              Reply to group            </a>
          </td>
          <td>&bull;</td>
          <td style=3D"font-size: 12px; font-family: arial; padding: 7px 5p=
x 5px;" >
            <a href=3D"https://groups.yahoo.com/neo/groups/blat/conversatio=
ns/newtopic;_ylc=3DX3oDMTJkamttbHN0BF9TAzk3MzU5NzE0BGdycElkAzMxMTEzNwRncnBz=
cElkAzE3MDUwMDczODkEc2VjA2Z0cgRzbGsDbnRwYwRzdGltZQMxNTU0NTczODIx" style=3D"=
text-decoration: none; color: #2D50FD">Start a New Topic</a>
          </td>
          <td>&bull;</td>
          <td style=3D"font-size: 12px; font-family: arial; padding: 7px 5p=
x 5px;color: #2D50FD;" >
                            <a href=3D"https://groups.yahoo.com/neo/groups/=
blat/conversations/topics/14076;_ylc=3DX3oDMTM1am1wdDgxBF9TAzk3MzU5NzE0BGdy=
cElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEbXNnSWQDMTQwODEEc2VjA2Z0cgRzbGsDdnR=
wYwRzdGltZQMxNTU0NTczODIxBHRwY0lkAzE0MDc2" style=3D"text-decoration: none; =
color: #2D50FD;">Messages in this topic</a>
                (6)
                      </td>
        </tr>
      </tbody>
    </table>

=20=20=20=20=20=20=20=20
<div id=3D"megaphoneModule">
            <hr style=3D"height:2px ; border-width:0; color:#E3E3E3; backgr=
ound-color:#E3E3E3;">
        <div>
	     <div class=3D"stream" style=3D"margin-bottom:10px;">
        <div style=3D"background-color:white;">
            <div class=3D"sn-img" style=3D"display:inline;"><img name=3D"tn=
_file" style=3D"padding:0px 10px;vertical-align:top;margin-top:5px;" src=3D=
"https://s.yimg.com/ru/static/images/yg/img/megaphone/1464031581_phpFA8bON"=
 height=3D"82" width=3D"82"></div>
            <div class=3D"mod-txt" style=3D"display:inline-block;">
                <a rel=3D"nofollow" name=3D"sub_url" target=3D"_blank" href=
=3D"https://yho.com/1wwmgg" style=3D"color:#0000FF;display:block;margin-lef=
t:5px;text-decoration:none;"><span style=3D"font-size:15px;">Have you tried=
 the highest rated email app?</span></a>
                <div style=3D"max-width:530px;padding:2px 5px;">With 4.5 st=
ars in iTunes, the Yahoo Mail app is the highest rated email app on the mar=
ket. What are you waiting for? Now you can access all your inboxes (Gmail, =
Outlook, AOL and more) in one place. Never delete an email again with 1000G=
B of free cloud storage.</div>
            </div>
        </div>
    </div>        </div>=20=20
=20=20=20=20=20
    <hr style=3D"height:2px ; border-width:0; color:#E3E3E3; background-col=
or:#E3E3E3;">
</div>

<!------- Start Nav Bar ------>
<!-- |**|begin egp html banner|**| -->
<!-- |**|end egp html banner|**| -->


    <div id=3D"ygrp-grfd" style=3D"font-family: Verdana; font-size: 12px; p=
adding: 15px 0;">
=20=20=20=20=20=20
<!-- |**|begin egp html banner|**| -->

      -- <BR>
Homepage:<BR>
&nbsp; <a href=3D"http://www.blat.net">http://www.blat.net</a><BR>
<BR>
</body>

<!--~-|**|PrettyHtmlStart|**|-~-->
<head>
  <style type=3D"text/css">
  <!--
  #ygrp-mkp {
  border: 1px solid #d8d8d8;
  font-family: Arial;
  margin: 10px 0;
  padding: 0 10px;
}

#ygrp-mkp hr {
  border: 1px solid #d8d8d8;
}

#ygrp-mkp #hd {
  color: #628c2a;
  font-size: 85%;
  font-weight: 700;
  line-height: 122%;
  margin: 10px 0;
}

#ygrp-mkp #ads {
  margin-bottom: 10px;
}

#ygrp-mkp .ad {
  padding: 0 0;
}

#ygrp-mkp .ad p {
  margin: 0;
}

#ygrp-mkp .ad a {
  color: #0000ff;
  text-decoration: none;
}
  #ygrp-sponsor #ygrp-lc {
  font-family: Arial;
}

#ygrp-sponsor #ygrp-lc #hd {
  margin: 10px 0px;
  font-weight: 700;
  font-size: 78%;
  line-height: 122%;
}

#ygrp-sponsor #ygrp-lc .ad {
  margin-bottom: 10px;
  padding: 0 0;
}

  #actions {
    font-family: Verdana;
    font-size: 11px;
    padding: 10px 0;
  }

  #activity {
    background-color: #e0ecee;
    float: left;
    font-family: Verdana;
    font-size: 10px;
    padding: 10px;
  }

  #activity span {
    font-weight: 700;
  }

  #activity span:first-child {
    text-transform: uppercase;
  }

  #activity span a {
    color: #5085b6;
    text-decoration: none;
  }

  #activity span span {
    color: #ff7900;
  }

  #activity span .underline {
    text-decoration: underline;
  }

  .attach {
    clear: both;
    display: table;
    font-family: Arial;
    font-size: 12px;
    padding: 10px 0;
    width: 400px;
  }

  .attach div a {
    text-decoration: none;
  }

  .attach img {
    border: none;
    padding-right: 5px;
  }

  .attach label {
    display: block;
    margin-bottom: 5px;
  }

  .attach label a {
    text-decoration: none;
  }
=20=20
  blockquote {
    margin: 0 0 0 4px;
  }

  .bold {
    font-family: Arial;
    font-size: 13px;
    font-weight: 700;
  }

  .bold a {
    text-decoration: none;
  }

  dd.last p a {
    font-family: Verdana;
    font-weight: 700;
  }

  dd.last p span {
    margin-right: 10px;
    font-family: Verdana;
    font-weight: 700;
  }

  dd.last p span.yshortcuts {
    margin-right: 0;
  }

  div.attach-table div div a {
    text-decoration: none;
  }

  div.attach-table {
    width: 400px;
  }

  div.file-title a, div.file-title a:active, div.file-title a:hover, div.fi=
le-title a:visited {
    text-decoration: none;
  }

  div.photo-title a, div.photo-title a:active, div.photo-title a:hover, div=
..photo-title a:visited {
    text-decoration: none;
  }

  div#ygrp-mlmsg #ygrp-msg p a span.yshortcuts {
    font-family: Verdana;
    font-size: 10px;
    font-weight: normal;
  }

  .green {
    color: #628c2a;
  }

  .MsoNormal {
    margin: 0 0 0 0;
  }

  o {
    font-size: 0;
  }

  #photos div {
    float: left;
    width: 72px;
  }

  #photos div div {
    border: 1px solid #666666;
    height: 62px;
    overflow: hidden;
    width: 62px;
  }

  #photos div label {
    color: #666666;
    font-size: 10px;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    width: 64px;
  }

  #reco-category {
    font-size: 77%;
  }

  #reco-desc {
    font-size: 77%;
  }

  .replbq {
    margin: 4px;
  }

  #ygrp-actbar div a:first-child {
   /* border-right: 0px solid #000;*/
    margin-right: 2px;
    padding-right: 5px;
  }

  #ygrp-mlmsg {
    font-size: 13px;
    font-family: Arial, helvetica,clean, sans-serif;
    *font-size: small;
    *font: x-small;
  }

  #ygrp-mlmsg table {
    font-size: inherit;
    font: 100%;
  }

  #ygrp-mlmsg select, input, textarea {
    font: 99% Arial, Helvetica, clean, sans-serif;
  }

  #ygrp-mlmsg pre, code {
    font:115% monospace;
    *font-size:100%;
  }

  #ygrp-mlmsg * {
    line-height: 1.22em;
  }

  #ygrp-mlmsg #logo {
    padding-bottom: 10px;
  }


  #ygrp-msg p a {
    font-family: Verdana;
  }

  #ygrp-msg p#attach-count span {
    color: #1E66AE;
    font-weight: 700;
  }

  #ygrp-reco #reco-head {
    color: #ff7900;
    font-weight: 700;
  }

  #ygrp-reco {
    margin-bottom: 20px;
    padding: 0px;
  }

  #ygrp-sponsor #ov li a {
    font-size: 130%;
    text-decoration: none;
  }

  #ygrp-sponsor #ov li {
    font-size: 77%;
    list-style-type: square;
    padding: 6px 0;
  }=20

  #ygrp-sponsor #ov ul {
    margin: 0;
    padding: 0 0 0 8px;
  }

  #ygrp-text {
    font-family: Georgia;
  }

  #ygrp-text p {
    margin: 0 0 1em 0;
  }

  #ygrp-text tt {
    font-size: 120%;
  }

  #ygrp-vital ul li:last-child {
    border-right: none !important;=20
  }=20
  -->
  </style>
</head>

<!--~-|**|PrettyHtmlEnd|**|-~-->
</html>
<!-- end group email -->


------=_NextPart_000_0006_01D4EC79.2499BC80--