| Newsgroups |
gmane.mail.blat |
| Message-ID |
<CAOB3chL2BV7TRD=Bv8p5k3C9q5h+z=xubjCeRerL39oM-ZBr3w@mail.gmail.com> |
--000000000000f39a9d05860c0079
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Many thanks for your help and suggestions. I wondered if having the subject
in a text file would work.
It is good for most of the apps. One has the subject line as a lookup in
another file so it has the letter number, English subject and then French
subject. That helps us cut down on the number of files
I will try confirming the lookup file is ansi and see if they fixed it and
if not then I will see if there is something in the process that can write
out the batch file and ansi.
Will year it but I assume you are right as it sounds reasonable and your
response is very detailed and sounds like you certainly know your stuff.
Many thanks for your tine and help.
Cheers
Chris
On Sun, Apr 7, 2019 at 6:03 AM <[email protected]> wrote:
> [image: Yahoo! Groups]
> <https://groups.yahoo.com/neo;_ylc=3DX3oDMTJjbjJjOTF0BF9TAzk3MzU5NzE1BGdy=
cElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEc2VjA2Z0cgRzbGsDZ2ZwBHN0aW1lAzE1NTQ=
2Mjc3ODc->
> Discussion of BLAT. Blat is a command line email tool (sending mail via
> smtp), written for Windows. Group
> <https://groups.yahoo.com/neo/groups/blat/info;_ylc=3DX3oDMTJjNTJyZ2M5BF9=
TAzk3MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEc2VjA2hkcgRzbGsDaH=
BoBHN0aW1lAzE1NTQ2Mjc3ODc->
> 2 Messages
> Digest #3336
> 1a
> Re: not recognizing accented character in subject line
> <#m_2646320415026239636_1a> by "Chip" chipprogrammer
> 1b
> Re: not recognizing accented character in subject line
> <#m_2646320415026239636_1b> by "Chip" chipprogrammer
>
> Messages
> 1a Re: not recognizing accented character in subject line
> <https://groups.yahoo.com/neo/groups/blat/conversations/topics/14081;_ylc=
=3DX3oDMTJxbHR2MTM2BF9TAzk3MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDcz=
ODkEbXNnSWQDMTQwODEEc2VjA2Rtc2cEc2xrA3Ztc2cEc3RpbWUDMTU1NDYyNzc4Nw-->
> Sat Apr 6, 2019 11:03 am (PDT) . Posted by: "Chip" chipprogrammer
> <[email protected]?subject=3DRe%3A%20not%20recognizing%20accented%2=
0character%20in%20subject%20line>
> If you need to run as a batch file, then put your subject line into a tex=
t
> file saved as Unicode or UTF-8, and tell Blat to get the subject line fro=
m
> that text file using the =E2=80=93sf option. This will preserve the accen=
ted
> character as intended.
>
> On my side, I added some debugging statements moments ago to print the
> individual 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 results:
>
> Argument #8 is your subject line shown below, in hex form, as seen when I
> typed at the command prompt:
> argv[ 8] =3D 0041 0076 0069 0073 0020 0069 006D 0070 006F 0072 0074 0061
> 006E 0074 0020 0061 0075 0020 0073 0075 006A 0065 0074 0020 00C9 006E 006=
5
> 0072 0067 0069 0065 0000
>
> Argument #8 is your subject line shown below, in hex form, as seen from a
> UTF-8 batch file:
> argv[ 8] =3D 0041 0076 0069 0073 0020 0069 006D 0070 006F 0072 0074 0061
> 006E 0074 0020 0061 0075 0020 0073 0075 006A 0065 0074 0020 251C 00EB 006=
E
> 0065 0072 0067 0069 0065 0000
>
> Argument #8 is your subject line shown below, in hex form, as seen from a=
n
> ANSI batch file:
> argv[ 8] =3D 0041 0076 0069 0073 0020 0069 006D 0070 006F 0072 0074 0061
> 006E 0074 0020 0061 0075 0020 0073 0075 006A 0065 0074 0020 2554 006E 006=
5
> 0072 0067 0069 0065 0000
>
> The above output shows the accented character typed on the command line
> differs from what Windows parses from a batch file. This explains why
> typing directly from the command prompt works, while trying to send
> accented characters within a batch file does not. The hex value 00C9 is
> your accented character 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]
> Sent: Saturday, April 06, 2019 1:47 AM
> To: [email protected]
> Subject: [blat] Re: not recognizing accented character in subject line
>
> okay I could not wait... logged on to try it out...
>
> here is the log file as a batch file:
> blat C:\out\EMAIL\LETTER_Chris.htm -html -s "Avis important au
> sujet =C3=89nergie" -attach LETTER_Chris.PDF -to <myemail> -f <sending em=
ail>
>
> 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 th=
e
> log part 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:
> email.bat >> email_Letters.log
>
> I tried running just the email.bat as administrator just for fun... no
> difference 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
> Reply to sender
> <[email protected]?subject=3DRe%3A%20not%20recognizing%20accented%2=
0character%20in%20subject%20line> .
> Reply to group
> <[email protected]?subject=3DRe%3A%20not%20recognizing%20accented%20ch=
aracter%20in%20subject%20line> .
> Reply via Web Post
> <https://groups.yahoo.com/neo/groups/blat/conversations/messages/14081;_y=
lc=3DX3oDMTJxbWlsYzlzBF9TAzk3MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMD=
czODkEbXNnSWQDMTQwODEEc2VjA2Rtc2cEc2xrA3JwbHkEc3RpbWUDMTU1NDYyNzc4Nw--?act=
=3Dreply&messageNum=3D14081> .
> All Messages (7)
> <https://groups.yahoo.com/neo/groups/blat/conversations/topics/14076;_ylc=
=3DX3oDMTM2dXFvdWR2BF9TAzk3MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDcz=
ODkEbXNnSWQDMTQwODEEc2VjA2Rtc2cEc2xrA3Z0cGMEc3RpbWUDMTU1NDYyNzc4NwR0cGNJZAM=
xNDA3Ng--> .
> Top ^ <#m_2646320415026239636_toc>
> 1b Re: not recognizing accented character in subject line
> <https://groups.yahoo.com/neo/groups/blat/conversations/topics/14082;_ylc=
=3DX3oDMTJxMnJ0MTc2BF9TAzk3MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDcz=
ODkEbXNnSWQDMTQwODIEc2VjA2Rtc2cEc2xrA3Ztc2cEc3RpbWUDMTU1NDYyNzc4Nw-->
> Sat Apr 6, 2019 4:55 pm (PDT) . Posted by: "Chip" chipprogrammer
> <[email protected]?subject=3DRe%3A%20not%20recognizing%20accented%2=
0character%20in%20subject%20line>
> I went to look up the code 0x2554 that Blat was given from your accented
> character in an ANSI batch file (default format). This character code is
> for the graphical double line upper left corner (=E2=95=94). In the old D=
OS days,
> this would have been an 8-bit code 0xC9. Here are two methods to solve th=
e
> dilemma:
>
> 1. As I mention below, your best solution is to save the subject line to =
a
> text file and use the =E2=80=93sf option to have Blat read the subject li=
ne from
> that file. The subject line text file should be saved in UTF-8 or Unicode
> format, because this will give you the most accurate results and supports
> far more characters than ANSI text does.
>
> 2. An alternative solution I found comes from stackoverflow.com (
> https://stackoverflow.com/questions/7584423/running-bat-cmd-file-with-acc=
ented-characters-in-it).
> If your subject line can be programmatically determined, then under progr=
am
> control use the echo command to output your command line to a batch file.
> This other batch file is what you then run for sending the email. There
> might be limitations based on which version of Windows you use.
>
> The first solution is much better.
>
> Chip
>
> From: mailto:[email protected]
> Sent: Saturday, April 06, 2019 1:03 PM
> To: [email protected]
> Subject: Re: [blat] Re: not recognizing accented character in subject lin=
e
>
> If you need to run as a batch file, then put your subject line into a tex=
t
> file saved as Unicode or UTF-8, and tell Blat to get the subject line fro=
m
> that text file using the =E2=80=93sf option. This will preserve the accen=
ted
> character as intended.
>
> On my side, I added some debugging statements moments ago to print the
> individual 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 results:
>
> Argument #8 is your subject line shown below, in hex form, as seen when I
> typed at the command prompt:
> argv[ 8] =3D 0041 0076 0069 0073 0020 0069 006D 0070 006F 0072 0074 0061
> 006E 0074 0020 0061 0075 0020 0073 0075 006A 0065 0074 0020 00C9 006E 006=
5
> 0072 0067 0069 0065 0000
>
> Argument #8 is your subject line shown below, in hex form, as seen from a
> UTF-8 batch file:
> argv[ 8] =3D 0041 0076 0069 0073 0020 0069 006D 0070 006F 0072 0074 0061
> 006E 0074 0020 0061 0075 0020 0073 0075 006A 0065 0074 0020 251C 00EB 006=
E
> 0065 0072 0067 0069 0065 0000
>
> Argument #8 is your subject line shown below, in hex form, as seen from a=
n
> ANSI batch file:
> argv[ 8] =3D 0041 0076 0069 0073 0020 0069 006D 0070 006F 0072 0074 0061
> 006E 0074 0020 0061 0075 0020 0073 0075 006A 0065 0074 0020 2554 006E 006=
5
> 0072 0067 0069 0065 0000
>
> The above output shows the accented character typed on the command line
> differs from what Windows parses from a batch file. This explains why
> typing directly from the command prompt works, while trying to send
> accented characters within a batch file does not. The hex value 00C9 is
> your accented character 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]
> Sent: Saturday, April 06, 2019 1:47 AM
> To: [email protected]
> Subject: [blat] Re: not recognizing accented character in subject line
>
> okay I could not wait... logged on to try it out...
>
> here is the log file as a batch file:
> blat C:\out\EMAIL\LETTER_Chris.htm -html -s "Avis important au
> sujet =C3=89nergie" -attach LETTER_Chris.PDF -to <myemail> -f <sending em=
ail>
>
> 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 th=
e
> log part 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:
> email.bat >> email_Letters.log
>
> I tried running just the email.bat as administrator just for fun... no
> difference 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
>
> Reply to sender
> <[email protected]?subject=3DRe%3A%20not%20recognizing%20accented%2=
0character%20in%20subject%20line> .
> Reply to group
> <[email protected]?subject=3DRe%3A%20not%20recognizing%20accented%20ch=
aracter%20in%20subject%20line> .
> Reply via Web Post
> <https://groups.yahoo.com/neo/groups/blat/conversations/messages/14082;_y=
lc=3DX3oDMTJxNTE4OGg4BF9TAzk3MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMD=
czODkEbXNnSWQDMTQwODIEc2VjA2Rtc2cEc2xrA3JwbHkEc3RpbWUDMTU1NDYyNzc4Nw--?act=
=3Dreply&messageNum=3D14082> .
> All Messages (7)
> <https://groups.yahoo.com/neo/groups/blat/conversations/topics/14076;_ylc=
=3DX3oDMTM2OXFnbDNqBF9TAzk3MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDcz=
ODkEbXNnSWQDMTQwODIEc2VjA2Rtc2cEc2xrA3Z0cGMEc3RpbWUDMTU1NDYyNzc4NwR0cGNJZAM=
xNDA3Ng--> .
> Top ^ <#m_2646320415026239636_toc>
> --
> Homepage:
> http://www.blat.net
>
> Community email addresses:
> Post message: [email protected]
> Subscribe: [email protected]
> Unsubscribe: [email protected]
> List owner: [email protected]
>
> Visit Your Group
> <https://groups.yahoo.com/neo/groups/blat/info;_ylc=3DX3oDMTJkZzU1bmcwBF9=
TAzk3MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEc2VjA3Z0bARzbGsDdm=
docARzdGltZQMxNTU0NjI3Nzg3>
>
>
> [image: Yahoo! Groups]
> <https://groups.yahoo.com/neo;_ylc=3DX3oDMTJjbjJjOTF0BF9TAzk3MzU5NzE1BGdy=
cElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEc2VjA2Z0cgRzbGsDZ2ZwBHN0aW1lAzE1NTQ=
2Mjc3ODc->
> =E2=80=A2 Privacy <https://info.yahoo.com/privacy/us/yahoo/groups/details=
..html> =E2=80=A2
> Unsubscribe <[email protected]?subject=3DUnsubscribe> =E2=
=80=A2 Terms
> of Use <https://info.yahoo.com/legal/us/yahoo/utos/terms/>
>
--000000000000f39a9d05860c0079
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"> </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><div dir=3D"auto">Many thanks for your help and suggestions. =
I wondered if having the subject in a text file would work.=C2=A0</div></di=
v><div dir=3D"auto"><br></div><div dir=3D"auto">It is good for most of the =
apps. One has the subject line as a lookup in another file so it has the le=
tter number, English subject and then French subject. That helps us cut dow=
n on the number of files=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D=
"auto">I will try confirming the lookup file is ansi and see if they fixed =
it and if not then I will see if there is something in the process that can=
write out the batch file and ansi.=C2=A0</div><div dir=3D"auto"><br></div>=
<div dir=3D"auto">Will year it but I assume you are right as it sounds reas=
onable and your response is very detailed and sounds like you certainly kno=
w your stuff. Many thanks for your tine and help.=C2=A0</div><div dir=3D"au=
to"><br></div><div dir=3D"auto">Cheers</div><div dir=3D"auto">Chris</div><d=
iv dir=3D"auto"><br></div><div dir=3D"auto"><br></div><div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Apr 7, 2019 =
at 6:03 AM <<a href=3D"mailto:[email protected]">[email protected]=
</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"border-=
left:1px #ccc solid;"><u></u>
=20=20
=20=20
<div style=3D"background-color:#ffffff;">
<div>
<div style=3D"font-family:helvetica,clean,sans-serif;font-size:13px;fon=
t-style:normal;font-variant:normal;font-weight:Bold;text-decoration:none;ba=
ckground-color:#393939;height:50px;">
<div style=3D"float:left;padding:5px 0px 2px 20px;">
<a style=3D"text-decoration:none;" href=3D"https://groups.yahoo.com/neo=
;_ylc=3DX3oDMTJjbjJjOTF0BF9TAzk3MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDU=
wMDczODkEc2VjA2Z0cgRzbGsDZ2ZwBHN0aW1lAzE1NTQ2Mjc3ODc-" target=3D"_blank"><s=
pan style=3D"color:#ffffff;"> <img src=3D"http://l.yimg.com/ru/static/image=
s/yg/img/email/new_logo/logo-groups-transparent-180x40.png" border=3D"0" al=
t=3D"Yahoo! Groups"> </span>
</a>
</div>
<div style=3D"float:right;padding:20px 30px 7px 0px;font-size:13px;max-w=
idth:550px;">
<a style=3D"text-decoration:none;color:#ffffff;" href=3D"https://groups=
..yahoo.com/neo/groups/blat/info;_ylc=3DX3oDMTJjNTJyZ2M5BF9TAzk3MzU5NzE1BGdy=
cElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEc2VjA2hkcgRzbGsDaHBoBHN0aW1lAzE1NTQ=
2Mjc3ODc-" target=3D"_blank">
<span style=3D"color:#ffffff;"> Discussion of BLAT.=C2=A0 Blat is a c=
ommand line email tool (sending mail via smtp), written for Windows. </span=
> <span style=3D"color:#b7b7b7;"> Group </span>=20
</a>=20
</div>
<div> </div>
</div>=20
<div style=3D"background-color:#f6f6f6;border-top:1px #dddddd;border-left=
:1px #dddddd;border-right:1px #dddddd;border-bottom:none;font-family:arial,=
helvetica,clean,sans-serif;color:#222222;font-size:11px;font-style:normal;f=
ont-variant:normal;">=20
<h1 style=3D"float:left;padding:14px 0px 11px 20px;font-size:11px;">
2=20=20
Messages </h1>
<div style=3D"float:right;padding:14px 30px 10px 0px;margin-top:7px;"=
>
Digest #3336 </div>
<div>=20
</div>
<div> </div>
</div>=20
=20=20=20=20
<div style=3D"border-top:1px solid #dddddd;border-left:1px solid #dddddd=
;border-right:1px solid #dddddd;border-bottom:1px solid #dddddd;">
<a name=3D"m_2646320415026239636_toc"></a>
<div style=3D"float:left;background-color:#ffffff;width:100%;">
<div style=3D"padding:5px 18px 4p=
x 18px;">
<div style=3D"float:left;width:30px;text-align:right;font-family:aria=
l,helvetica,clean,sans-serif;color:#222222;font-size:12px;font-style:normal=
;font-variant:normal;font-weight:bold;text-decoration:none;">=20
1a=20
</div>
<div style=3D"float:left;padding:0px 0px 0px 10px;font-family:arial,hel=
vetica,clean,sans-serif;color:#3353f3;font-size:12px;font-style:normal;font=
-variant:normal;font-weight:bold;text-decoration:none;">=20
<a style=3D"text-decoration:none;color:#3353f3;" href=3D"#m_26463204=
15026239636_1a">=20
Re: not recognizing accented character in subject line=20
</a>=20
<span style=3D"margin-left:3px;text-decoration:none;color:#333333;">
by=20
"Chip"
chipprogrammer </span>
</div>
<div>=20
</div>
</div>
<div style=3D"border-bottom=
:none;padding:5px 18px 7px 18px;">
<div style=3D"float:left;width:30px;text-align:right;font-family:aria=
l,helvetica,clean,sans-serif;color:#222222;font-size:12px;font-style:normal=
;font-variant:normal;font-weight:bold;text-decoration:none;">=20
1b=20
</div>
<div style=3D"float:left;padding:0px 0px 0px 10px;font-family:arial,hel=
vetica,clean,sans-serif;color:#3353f3;font-size:12px;font-style:normal;font=
-variant:normal;font-weight:bold;text-decoration:none;">=20
<a style=3D"text-decoration:none;color:#3353f3;" href=3D"#m_26463204=
15026239636_1b">=20
Re: not recognizing accented character in subject line=20
</a>=20
<span style=3D"margin-left:3px;text-decoration:none;color:#333333;">
by=20
"Chip"
chipprogrammer </span>
</div>
<div>=20
</div>
</div>
</div>=20=20=20
=20
=20=20=20=20=20=20=20=20
<div>=20
</div>
</div>
<p> </p>
<div style=3D"margin-top:27px;">=20=20=20
<div>
=20=20=20=20
<h1 style=3D"font-size:110%;font-weight:bold;padding:0px 0px 10px 10px;=
margin:0;">
Messages </h1>
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
<div style=3D"float:left;margin-bottom:40px;">
<div style=3D"font-family:arial,helvetica,clean,sans-serif;font-size:=
16px;font-style:normal;font-variant:normal;text-decoration:none;">
<h2 style=3D"float:left;margin:0px 0px 0px 10px;padding:0px;color:#22=
2222;text-align:right;font-family:arial,helvetica,clean,sans-serif;font-siz=
e:16px;font-style:normal;font-variant:normal;text-decoration:none;">
1a=20=20
</h2>
=20=20=20=20
<h2 style=3D"float:left;padding:0px;margin:0px 0px 0px 10px;float:lef=
t;color:#222222;font-weight:bold;font-family:arial,helvetica,clean,sans-ser=
if;font-size:16px;font-style:normal;font-variant:normal;">
<a style=3D"text-decoration:none;" href=3D"https://groups.yahoo.com=
/neo/groups/blat/conversations/topics/14081;_ylc=3DX3oDMTJxbHR2MTM2BF9TAzk3=
MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEbXNnSWQDMTQwODEEc2VjA2R=
tc2cEc2xrA3Ztc2cEc3RpbWUDMTU1NDYyNzc4Nw--" name=3D"m_2646320415026239636_1a=
" target=3D"_blank">=20
<span style=3D"color:#3353f3;">
Re: not recognizing accented character in subject line </spa=
n>
</a>
</h2>
<div> </div>
</div>=20
<div style=3D"float:left;margin-left:40px;">
<h4 style=3D"float:left;margin-left:40px;font-family:arial,helvetica,=
clean,sans-serif;color:#000000;font-size:12px;font-style:normal;font-varian=
t:normal;font-weight:normal;text-decoration:none;margin:0px;">
Sat Apr=C2=A06,=C2=A02019 11:03=C2=A0am (PDT) . Poste=
d by: </h4>
<h3 style=3D"float:left;font-family:arial,helvetica,clean,sans-serif;=
color:#3353f3;font-size:12px;font-style:normal;font-variant:normal;font-wei=
ght:normal;text-decoration:none;margin:0px 0px 0px 1px;padding:0px;">
<a style=3D"text-decoration:none;" href=3D"mailto:chip.programmer@a=
tt.net?subject=3DRe%3A%20not%20recognizing%20accented%20character%20in%20su=
bject%20line" target=3D"_blank">
<span style=3D"color:#3353f3;">
"Chip" chipprogrammer </span>
</a>
</h3>
</div>
<div> </div>
<div style=3D"float:left;margin-top:22px;margin-bottom:6px;margin-l=
eft:40px;font-family:arial,helvetica,clean,sans-serif;color:#333333;font-si=
ze:13px;font-style:normal;font-variant:normal;font-weight:normal;">
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 subje=
ct line from that text file using the =E2=80=93sf option. This will preser=
ve the accented character as intended.<br>
<br>
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:<br>
<br>
Argument #8 is your subject line shown below, in hex form, as seen when I t=
yped at the command prompt:<br>
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<br>
<br>
Argument #8 is your subject line shown below, in hex form, as seen from a U=
TF-8 batch file:<br>
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<br>
<br>
Argument #8 is your subject line shown below, in hex form, as seen from an =
ANSI batch file:<br>
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<br>
<br>
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.<br>
<br>
I am running on Windows 7 64-bit with US keyboard and code page.<br>
<br>
Chip<br>
<br>
From: mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">blat=
@yahoogroups.com</a> <br>
Sent: Saturday, April 06, 2019 1:47 AM<br>
To: <a href=3D"mailto:[email protected]" target=3D"_blank">blat@yahoogro=
ups.com</a> <br>
Subject: [blat] Re: not recognizing accented character in subject line<br>
<br>
okay I could not wait... logged on to try it out... <br>
<br>
here is the log file as a batch file:<br>
blat C:\out&#92;EMAIL&#92;LETTER_Chris.htm -html -s "Avis impo=
rtant au sujet =C3=89nergie" -attach LETTER_Chris.PDF -to <myemai=
l> -f <sending email><br>
<br>
Sending C:\out&#92;EMAIL&#92;LETTER_Chris.htm to <email address&=
gt;<br>
Subject: Avis important au sujet +nergie<br>
Attached binary file: letter.pdf<br>
Try number 1 of 5.<br>
<br>
then if I do it from the command line...<br>
Subject: Avis important au sujet =E2=95=94nergie<br>
<br>
hmmm but in the actual email inbox<br>
Avis important au sujet =C3=89nergie<br>
<br>
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.<br>
<br>
I run the command batch from another command batch so I can get a log file:=
<br>
email.bat >> email_Letters.log<br>
<br>
I tried running just the email.bat as administrator just for fun... no diff=
erence vs running as batch file.<br>
<br>
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?<br>
<br>
thanks<br>
chris<br>
</div>
<div> </div>
=20=20
<div> </div>=20
=20=20
=20=20
=20=20=20=20
<div> </div>
<div style=3D"height:25px;margin-left:40px;margin-top:10px;">=20
<div style=3D"font-family:arial,helvetica,clean,sans-serif;color:#33=
53f3;font-size:12px;font-style:normal;font-variant:normal;font-weight:bold;=
text-decoration:none;border-top:1px #ffffff;padding:5px 0px 5px 10px;">
<span style=3D"margin-right:4px;">
<a style=3D"text-decoration:none;" href=3D"mailto:chip.programme=
[email protected]?subject=3DRe%3A%20not%20recognizing%20accented%20character%20in%2=
0subject%20line" target=3D"_blank">
<span style=3D"color:#3353f3;">=20
Reply to sender </span>
</a>=20
</span>=20
<span style=3D"font-weight:bold;"> . </span>
<span style=3D"margin:0px 4px 0px 4px;">
<a style=3D"text-decoration:none;" href=3D"mailto:blat@yahoogrou=
ps.com?subject=3DRe%3A%20not%20recognizing%20accented%20character%20in%20su=
bject%20line" target=3D"_blank">
<span style=3D"color:#3353f3;">=20
Reply to group </span>
</a>=20
</span>
<span style=3D"font-weight:bold;"> . </span>
<span style=3D"margin:0px 4px 0px 4px;">
<a style=3D"text-decoration:none;" href=3D"https://groups.yahoo.c=
om/neo/groups/blat/conversations/messages/14081;_ylc=3DX3oDMTJxbWlsYzlzBF9T=
Azk3MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEbXNnSWQDMTQwODEEc2V=
jA2Rtc2cEc2xrA3JwbHkEc3RpbWUDMTU1NDYyNzc4Nw--?act=3Dreply&messageNum=3D=
14081" target=3D"_blank">
<span style=3D"color:#3353f3;">=20
Reply via Web Post
</span>
</a>=20
</span>
<span style=3D"font-weight:bold;"> . </span>
<span style=3D"margin:0px 4px 0px 4px;">
<a style=3D"text-decoration:none;" href=3D"https://groups.yahoo.c=
om/neo/groups/blat/conversations/topics/14076;_ylc=3DX3oDMTM2dXFvdWR2BF9TAz=
k3MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEbXNnSWQDMTQwODEEc2VjA=
2Rtc2cEc2xrA3Z0cGMEc3RpbWUDMTU1NDYyNzc4NwR0cGNJZAMxNDA3Ng--" target=3D"_bla=
nk">
<span style=3D"color:#3353f3;">=20
All Messages (7)
</span>
</a>
</span>=20
<span style=3D"font-weight:bold;"> . </span>
<span style=3D"margin:0px 9px 0px 9px;">
<a style=3D"text-decoration:none;color:#3353f3;" href=3D"#m_26463=
20415026239636_toc">
Top ^
</a>=20
</span>=20
<div> </div>
</div>
</div>
</div>
<div> </div>
=20=20=20=20=20=20
<div style=3D"float:left;margin-bottom:40px;">
<div style=3D"font-family:arial,helvetica,clean,sans-serif;font-size:=
16px;font-style:normal;font-variant:normal;text-decoration:none;">
<h2 style=3D"float:left;margin:0px 0px 0px 10px;padding:0px;color:#22=
2222;text-align:right;font-family:arial,helvetica,clean,sans-serif;font-siz=
e:16px;font-style:normal;font-variant:normal;text-decoration:none;">
1b=20=20
</h2>
=20=20=20=20
<h2 style=3D"float:left;padding:0px;margin:0px 0px 0px 10px;float:lef=
t;color:#222222;font-weight:bold;font-family:arial,helvetica,clean,sans-ser=
if;font-size:16px;font-style:normal;font-variant:normal;">
<a style=3D"text-decoration:none;" href=3D"https://groups.yahoo.com=
/neo/groups/blat/conversations/topics/14082;_ylc=3DX3oDMTJxMnJ0MTc2BF9TAzk3=
MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEbXNnSWQDMTQwODIEc2VjA2R=
tc2cEc2xrA3Ztc2cEc3RpbWUDMTU1NDYyNzc4Nw--" name=3D"m_2646320415026239636_1b=
" target=3D"_blank">=20
<span style=3D"color:#3353f3;">
Re: not recognizing accented character in subject line </spa=
n>
</a>
</h2>
<div> </div>
</div>=20
<div style=3D"float:left;margin-left:40px;">
<h4 style=3D"float:left;margin-left:40px;font-family:arial,helvetica,=
clean,sans-serif;color:#000000;font-size:12px;font-style:normal;font-varian=
t:normal;font-weight:normal;text-decoration:none;margin:0px;">
Sat Apr=C2=A06,=C2=A02019 4:55=C2=A0pm (PDT) . Posted=
by: </h4>
<h3 style=3D"float:left;font-family:arial,helvetica,clean,sans-serif;=
color:#3353f3;font-size:12px;font-style:normal;font-variant:normal;font-wei=
ght:normal;text-decoration:none;margin:0px 0px 0px 1px;padding:0px;">
<a style=3D"text-decoration:none;" href=3D"mailto:chip.programmer@a=
tt.net?subject=3DRe%3A%20not%20recognizing%20accented%20character%20in%20su=
bject%20line" target=3D"_blank">
<span style=3D"color:#3353f3;">
"Chip" chipprogrammer </span>
</a>
</h3>
</div>
<div> </div>
<div style=3D"float:left;margin-top:22px;margin-bottom:6px;margin-l=
eft:40px;font-family:arial,helvetica,clean,sans-serif;color:#333333;font-si=
ze:13px;font-style:normal;font-variant:normal;font-weight:normal;">
I went to look up the code 0x2554 that Blat was given from you=
r accented character in an ANSI batch file (default format). This characte=
r code is for the graphical double line upper left corner (=E2=95=94). In =
the old DOS days, this would have been an 8-bit code 0xC9. Here are two me=
thods to solve the dilemma:<br>
<br>
1. As I mention below, your best solution is to save the subject line to a=
text file and use the =E2=80=93sf option to have Blat read the subject lin=
e from that file. The subject line text file should be saved in UTF-8 or U=
nicode format, because this will give you the most accurate results and sup=
ports far more characters than ANSI text does.<br>
<br>
2. An alternative solution I found comes from <a href=3D"http://stackoverf=
low.com" target=3D"_blank">stackoverflow.com</a> (<a href=3D"https://stacko=
verflow.com/questions/7584423/running-bat-cmd-file-with-accented-characters=
-in-it" target=3D"_blank">https://stackoverflow.com/questions/7584423/runni=
ng-bat-cmd-file-with-accented-characters-in-it</a>). If your subject line =
can be programmatically determined, then under program control use the echo=
command to output your command line to a batch file. This other batch fil=
e is what you then run for sending the email. There might be limitations b=
ased on which version of Windows you use.<br>
<br>
The first solution is much better.<br>
<br>
Chip<br>
<br>
From: mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">blat=
@yahoogroups.com</a> <br>
Sent: Saturday, April 06, 2019 1:03 PM<br>
To: <a href=3D"mailto:[email protected]" target=3D"_blank">blat@yahoogro=
ups.com</a> <br>
Subject: Re: [blat] Re: not recognizing accented character in subject line<=
br>
<br>
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.<br>
<br>
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:<br>
<br>
Argument #8 is your subject line shown below, in hex form, as seen when I t=
yped at the command prompt:<br>
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<br>
<br>
Argument #8 is your subject line shown below, in hex form, as seen from a U=
TF-8 batch file:<br>
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<br>
<br>
Argument #8 is your subject line shown below, in hex form, as seen from an =
ANSI batch file:<br>
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<br>
<br>
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.<br>
<br>
I am running on Windows 7 64-bit with US keyboard and code page.<br>
<br>
Chip<br>
<br>
From: mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">blat=
@yahoogroups.com</a> <br>
Sent: Saturday, April 06, 2019 1:47 AM<br>
To: <a href=3D"mailto:[email protected]" target=3D"_blank">blat@yahoogro=
ups.com</a> <br>
Subject: [blat] Re: not recognizing accented character in subject line<br>
<br>
okay I could not wait... logged on to try it out... <br>
<br>
here is the log file as a batch file:<br>
blat C:\out&#92;EMAIL&#92;LETTER_Chris.htm -html -s "Avis impo=
rtant au sujet =C3=89nergie" -attach LETTER_Chris.PDF -to <myemai=
l> -f <sending email><br>
<br>
Sending C:\out&#92;EMAIL&#92;LETTER_Chris.htm to <email address&=
gt;<br>
Subject: Avis important au sujet +nergie<br>
Attached binary file: letter.pdf<br>
Try number 1 of 5.<br>
<br>
then if I do it from the command line...<br>
Subject: Avis important au sujet =E2=95=94nergie<br>
<br>
hmmm but in the actual email inbox<br>
Avis important au sujet =C3=89nergie<br>
<br>
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.<br>
<br>
I run the command batch from another command batch so I can get a log file:=
<br>
email.bat >> email_Letters.log<br>
<br>
I tried running just the email.bat as administrator just for fun... no diff=
erence vs running as batch file.<br>
<br>
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?<br>
<br>
thanks<br>
chris<br>
<br>
</div>
<div> </div>
=20=20
<div> </div>=20
=20=20
=20=20
=20=20=20=20
<div> </div>
<div style=3D"height:25px;margin-left:40px;margin-top:10px;">=20
<div style=3D"font-family:arial,helvetica,clean,sans-serif;color:#33=
53f3;font-size:12px;font-style:normal;font-variant:normal;font-weight:bold;=
text-decoration:none;border-top:1px #ffffff;padding:5px 0px 5px 10px;">
<span style=3D"margin-right:4px;">
<a style=3D"text-decoration:none;" href=3D"mailto:chip.programme=
[email protected]?subject=3DRe%3A%20not%20recognizing%20accented%20character%20in%2=
0subject%20line" target=3D"_blank">
<span style=3D"color:#3353f3;">=20
Reply to sender </span>
</a>=20
</span>=20
<span style=3D"font-weight:bold;"> . </span>
<span style=3D"margin:0px 4px 0px 4px;">
<a style=3D"text-decoration:none;" href=3D"mailto:blat@yahoogrou=
ps.com?subject=3DRe%3A%20not%20recognizing%20accented%20character%20in%20su=
bject%20line" target=3D"_blank">
<span style=3D"color:#3353f3;">=20
Reply to group </span>
</a>=20
</span>
<span style=3D"font-weight:bold;"> . </span>
<span style=3D"margin:0px 4px 0px 4px;">
<a style=3D"text-decoration:none;" href=3D"https://groups.yahoo.c=
om/neo/groups/blat/conversations/messages/14082;_ylc=3DX3oDMTJxNTE4OGg4BF9T=
Azk3MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEbXNnSWQDMTQwODIEc2V=
jA2Rtc2cEc2xrA3JwbHkEc3RpbWUDMTU1NDYyNzc4Nw--?act=3Dreply&messageNum=3D=
14082" target=3D"_blank">
<span style=3D"color:#3353f3;">=20
Reply via Web Post
</span>
</a>=20
</span>
<span style=3D"font-weight:bold;"> . </span>
<span style=3D"margin:0px 4px 0px 4px;">
<a style=3D"text-decoration:none;" href=3D"https://groups.yahoo.c=
om/neo/groups/blat/conversations/topics/14076;_ylc=3DX3oDMTM2OXFnbDNqBF9TAz=
k3MzU5NzE1BGdycElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEbXNnSWQDMTQwODIEc2VjA=
2Rtc2cEc2xrA3Z0cGMEc3RpbWUDMTU1NDYyNzc4NwR0cGNJZAMxNDA3Ng--" target=3D"_bla=
nk">
<span style=3D"color:#3353f3;">=20
All Messages (7)
</span>
</a>
</span>=20
<span style=3D"font-weight:bold;"> . </span>
<span style=3D"margin:0px 9px 0px 9px;">
<a style=3D"text-decoration:none;color:#3353f3;" href=3D"#m_26463=
20415026239636_toc">
Top ^
</a>=20
</span>=20
<div> </div>
</div>
</div>
</div>
<div> </div>
</div>=20
=20=20=20
=20=20=20
<div> </div>
</div>
<div> </div>
</div>
<div id=3D"m_2646320415026239636ygrp-grfd" style=3D"font-family:Verdana=
;font-size:12px;margin-left:20px;padding:15px 0;">
=20=20=20=20=20=20
-- <br>
Homepage:<br>
=C2=A0 <a href=3D"http://www.blat.net" target=3D"_blank">http://www.blat.ne=
t</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 -->
--000000000000f39a9d05860c0079--