Horský Vladimír
2013-12-27 12:24:10 UTC
Hi guys
I have been using blat 2.6.2. for many years. Now I tried to use the newest
version 3.1.1 and have got big problems with national Czech characters.
On my Windows there is Windows-1250 and when I use blat, everytime the
received e-mail has national characters improperly shown.
It looks like blat now does some defult conversion/translation, but does it
probably improperly and that DLL version works differently from EXE version.
Could you please write me, how to use blat.dll correctly to send e-mail with
national characters?
Vladimir
Details:
I tested it with test text with Czech characters: "Test nastavení:
ěščřžýáíé" (if you can't see the national characters, the text is "Test
nastaveni(i acute,237,0xED): e(e caron,236,0xEC)s(s caron,154,0x9A)c(c
caron,232,0xE8)r(r caron,248,0xF8)z(z caron,158,9E)y(y acute,253,0xFD)a(a
acute,225,0xE1)i(i acute)e(e acute,233,OxE9)"). You can see details on
Windows-1250 code page e.g. on http://en.wikipedia.org/wiki/Windows-1250 or
http://msdn.microsoft.com/en-us/library/cc195052.aspx.
When converted to UTF-8 this text looks like this:
EFBBBF54657374206E6173746176656EC3AD3A20C49BC5A1C48DC599C5BEC3BDC3A1C3ADC3A9
I am using blat.dll called directly from application.
1) When I do not use the -charset option and send this parameter to
blat.dll:
- -server smtp.seznam.cz -hdrencq -log
"C:\TEMP\test\email.log" -overwritelog -superdebug -priority 1 -u
***@... -pw **** -f "V.H. <***@...>" -to "***@..." -subject "Test
nastavení: ěščřžýáíé" -body "Test nastavení: ěščřžýáíé"
then in log is this text:
superDebug: 00150 53 75 62 6A 65 63 74 3A 20 3D 3F 55 54 46 2D 38 Subject:
=?UTF-8
superDebug: 00160 3F 51 3F 54 65 73 74 5F 6E 61 73 74 61 76 65 6E
?Q?Test_nastaven
superDebug: 00170 3D 43 33 3D 39 44 3D 33 41 3F 3D 0D 0A 20 3D 3F
=C3=9D=3A?=.. =?
superDebug: 00180 55 54 46 2D 38 3F 51 3F 5F 3D 43 33 3D 42 44 3D
UTF-8?Q?_=C3=BD=
superDebug: 00190 43 33 3D 39 43 3D 43 35 3D 39 34 3D 43 32 3D 42
C3=9C=C5=94=C2=B
superDebug: 001A0 30 3D 43 33 3D 39 37 3D 43 35 3D 39 39 3D 43 33
0=C3=97=C5=99=C3
superDebug: 001B0 3D 39 46 3D 43 33 3D 39 44 3D 43 33 3D 39 41 3F
=9F=C3=9D=C3=9A?
superDebug: 001C0 3D 0D 0A 4D 49 4D 45 2D 56 65 72 73 69 6F 6E 3A
=..MIME-Version:
superDebug: 001D0 20 31 2E 30 0D 0A 43 6F 6E 74 65 6E 74 2D 54 72
1.0..Content-Tr
superDebug: 001E0 61 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A
ansfer-Encoding:
superDebug: 001F0 20 71 75 6F 74 65 64 2D 70 72 69 6E 74 61 62 6C
quoted-printabl
superDebug: 00200 65 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A
e..Content-Type:
superDebug: 00210 20 74 65 78 74 2F 70 6C 61 69 6E 3B 0D 0A 20 63
text/plain;.. c
superDebug: 00220 68 61 72 73 65 74 3D 22 55 54 46 2D 38 22 0D 0A
harset="UTF-8"..
superDebug: 00230 0D 0A 54 65 73 74 20 6E 61 73 74 61 76 65 6E C3 ..Test
nastaven.
superDebug: 00240 9D 3A 20 C3 BD C3 9C C5 94 C2 B0 C3 97 C5 99 C3 .:
.............
superDebug: 00250 9F C3 9D C3 9A 0D 0A 2E 0D 0A
..........
2)When I use -charset Windows-1250 and send this parameter to blat.dll:
- -server smtp.seznam.cz -charset Windows-1250 -hdrencq -log
"C:\TEMP\test\email.log" -overwritelog -superdebug -priority 1 -u
***@... -pw **** -f "V.H. <***@...>" -to "***@..." -subject "Test
nastavení: ěščřžýáíé" -body "Test nastavení: ěščřžýáíé"
then in log is this text:
superDebug: 00140 34 36 40 73 65 7A 6E 61 6D 2E 63 7A 3E 0D 0A 53
***@seznam.cz>..S
superDebug: 00150 75 62 6A 65 63 74 3A 20 3D 3F 55 54 46 2D 38 3F ubject:
=?UTF-8?
superDebug: 00160 51 3F 54 65 73 74 5F 6E 61 73 74 61 76 65 6E 3D
Q?Test_nastaven=
superDebug: 00170 43 33 3D 39 44 3D 33 41 3F 3D 0D 0A 20 3D 3F 55
C3=9D=3A?=.. =?U
superDebug: 00180 54 46 2D 38 3F 51 3F 5F 3D 43 33 3D 42 44 3D 43
TF-8?Q?_=C3=BD=C
superDebug: 00190 33 3D 39 43 3D 43 35 3D 39 34 3D 43 32 3D 42 30
3=9C=C5=94=C2=B0
superDebug: 001A0 3D 43 33 3D 39 37 3D 43 35 3D 39 39 3D 43 33 3D
=C3=97=C5=99=C3=
superDebug: 001B0 39 46 3D 43 33 3D 39 44 3D 43 33 3D 39 41 3F 3D
9F=C3=9D=C3=9A?=
superDebug: 001C0 0D 0A 4D 49 4D 45 2D 56 65 72 73 69 6F 6E 3A 20
..MIME-Version:
superDebug: 001D0 31 2E 30 0D 0A 43 6F 6E 74 65 6E 74 2D 54 72 61
1.0..Content-Tra
superDebug: 001E0 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A 20
nsfer-Encoding:
superDebug: 001F0 71 75 6F 74 65 64 2D 70 72 69 6E 74 61 62 6C 65
quoted-printable
superDebug: 00200 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A 20
..Content-Type:
superDebug: 00210 74 65 78 74 2F 70 6C 61 69 6E 3B 0D 0A 20 63 68
text/plain;.. ch
superDebug: 00220 61 72 73 65 74 3D 22 57 49 4E 44 4F 57 53 2D 31
arset="WINDOWS-1
superDebug: 00230 32 35 30 22 0D 0A 0D 0A 54 65 73 74 20 6E 61 73
250"....Test nas
superDebug: 00240 74 61 76 65 6E C3 9D 3A 20 C3 BD C3 9C C5 94 C2 taven..:
.......
superDebug: 00250 B0 C3 97 C5 99 C3 9F C3 9D C3 9A 0D 0A 2E 0D 0A
................
3)When I use -charset UTF-8 and send this parameter to blat.dll:
- -server smtp.seznam.cz -charset UTF-8 -hdrencq -log
"C:\TEMP\test\email.log" -overwritelog -superdebug -priority 1 -u
***@... -pw **** -f "V.H. <***@...>" -to "***@..." -subject "Test
nastavení: ěščřžýáíé" -body "Test nastavení: ěščřžýáíé"
then in log is this text:
superDebug: 00150 53 75 62 6A 65 63 74 3A 20 3D 3F 55 54 46 2D 38 Subject:
=?UTF-8
superDebug: 00160 3F 51 3F 54 65 73 74 5F 6E 61 73 74 61 76 65 6E
?Q?Test_nastaven
superDebug: 00170 3D 43 33 3D 39 44 3D 33 41 3F 3D 0D 0A 20 3D 3F
=C3=9D=3A?=.. =?
superDebug: 00180 55 54 46 2D 38 3F 51 3F 5F 3D 43 33 3D 42 44 3D
UTF-8?Q?_=C3=BD=
superDebug: 00190 43 33 3D 39 43 3D 43 35 3D 39 34 3D 43 32 3D 42
C3=9C=C5=94=C2=B
superDebug: 001A0 30 3D 43 33 3D 39 37 3D 43 35 3D 39 39 3D 43 33
0=C3=97=C5=99=C3
superDebug: 001B0 3D 39 46 3D 43 33 3D 39 44 3D 43 33 3D 39 41 3F
=9F=C3=9D=C3=9A?
superDebug: 001C0 3D 0D 0A 4D 49 4D 45 2D 56 65 72 73 69 6F 6E 3A
=..MIME-Version:
superDebug: 001D0 20 31 2E 30 0D 0A 43 6F 6E 74 65 6E 74 2D 54 72
1.0..Content-Tr
superDebug: 001E0 61 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A
ansfer-Encoding:
superDebug: 001F0 20 71 75 6F 74 65 64 2D 70 72 69 6E 74 61 62 6C
quoted-printabl
superDebug: 00200 65 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A
e..Content-Type:
superDebug: 00210 20 74 65 78 74 2F 70 6C 61 69 6E 3B 0D 0A 20 63
text/plain;.. c
superDebug: 00220 68 61 72 73 65 74 3D 22 55 54 46 2D 38 22 0D 0A
harset="UTF-8"..
superDebug: 00230 0D 0A 54 65 73 74 20 6E 61 73 74 61 76 65 6E C3 ..Test
nastaven.
superDebug: 00240 9D 3A 20 C3 BD C3 9C C5 94 C2 B0 C3 97 C5 99 C3 .:
.............
superDebug: 00250 9F C3 9D C3 9A 0D 0A 2E 0D 0A
..........
4) And even when I convert the input subject and body into UTF-8 format:
- -server smtp.seznam.cz -charset UTF-8 -hdrencq -log
"C:\TEMP\test\email.log" -overwritelog -superdebug -priority 1 -u
***@... -pw **** -f "V.H. <***@...>" -to "***@..." -subject "Test
nastavenĂ: Ä>ščĹTžýáĂĂC" -body "Test nastavenĂ: Ä>ščĹTžýáĂĂC"
then in log there is:
superDebug: 00150 53 75 62 6A 65 63 74 3A 20 3D 3F 55 54 46 2D 38 Subject:
=?UTF-8
superDebug: 00160 3F 51 3F 54 65 73 74 5F 6E 61 73 74 61 76 65 6E
?Q?Test_nastaven
superDebug: 00170 3D 45 32 3D 39 34 3D 39 43 3D 43 35 3D 39 46 3D
=E2=94=9C=C5=9F=
superDebug: 00180 33 41 3F 3D 0D 0A 20 3D 3F 55 54 46 2D 38 3F 51 3A?=..
=?UTF-8?Q
superDebug: 00190 3F 5F 3D 45 32 3D 39 34 3D 38 30 3D 43 35 3D 41
?_=E2=94=80=C5=A
superDebug: 001A0 34 3D 45 32 3D 39 34 3D 42 43 3D 43 33 3D 41 44
4=E2=94=BC=C3=AD
superDebug: 001B0 3D 45 32 3D 39 34 3D 38 30 3D 43 35 3D 42 39 3D
=E2=94=80=C5=B9=
superDebug: 001C0 45 32 3D 39 34 3D 42 43 3D 43 33 3D 39 36 3D 45
E2=94=BC=C3=96=E
superDebug: 001D0 32 3F 3D 0D 0A 20 3D 3F 55 54 46 2D 38 3F 51 3F 2?=..
=?UTF-8?Q?
superDebug: 001E0 3D 39 34 3D 42 43 3D 43 35 3D 42 43 3D 45 32 3D
=94=BC=C5=BC=E2=
superDebug: 001F0 39 34 3D 39 43 3D 43 35 3D 42 42 3D 45 32 3D 39
94=9C=C5=BB=E2=9
superDebug: 00200 34 3D 39 43 3D 43 33 3D 41 44 3D 45 32 3D 39 34
4=9C=C3=AD=E2=94
superDebug: 00210 3D 39 43 3D 43 35 3D 39 46 3D 45 32 3D 39 34 3F
=9C=C5=9F=E2=94?
superDebug: 00220 3D 0D 0A 20 3D 3F 55 54 46 2D 38 3F 51 3F 3D 39 =..
=?UTF-8?Q?=9
superDebug: 00230 43 3D 43 34 3D 39 39 3F 3D 0D 0A 4D 49 4D 45 2D
C=C4=99?=..MIME-
superDebug: 00240 56 65 72 73 69 6F 6E 3A 20 31 2E 30 0D 0A 43 6F Version:
1.0..Co
superDebug: 00250 6E 74 65 6E 74 2D 54 72 61 6E 73 66 65 72 2D 45
ntent-Transfer-E
superDebug: 00260 6E 63 6F 64 69 6E 67 3A 20 71 75 6F 74 65 64 2D ncoding:
quoted-
superDebug: 00270 70 72 69 6E 74 61 62 6C 65 0D 0A 43 6F 6E 74 65
printable..Conte
superDebug: 00280 6E 74 2D 54 79 70 65 3A 20 74 65 78 74 2F 70 6C nt-Type:
text/pl
superDebug: 00290 61 69 6E 3B 0D 0A 20 63 68 61 72 73 65 74 3D 22 ain;..
charset="
superDebug: 002A0 55 54 46 2D 38 22 0D 0A 0D 0A 54 65 73 74 20 6E
UTF-8"....Test n
superDebug: 002B0 61 73 74 61 76 65 6E E2 94 9C C5 9F 3A 20 E2 94
astaven.....: ..
superDebug: 002C0 80 C5 A4 E2 94 BC C3 AD E2 94 80 C5 B9 E2 94 BC
................
superDebug: 002D0 C3 96 E2 94 BC C5 BC E2 94 9C C5 BB E2 94 9C C3
................
superDebug: 002E0 AD E2 94 9C C5 9F E2 94 9C C4 99 0D 0A 2E 0D 0A
................
5) Using the same parameter like in point 2) but with BLAT.EXE (that is
WITH -charset Windows-1250 parameter) in command line window (CMD.EXE)
outputs the e-mail that has correctly coded only Subject, but incorrectly
coded Body.
Command:
C:\temp\blat\3.1.1\full>blat - -server smtp.seznam.cz -charset
Windows-1250 -hdrencq -log
"C:\TEMP\test\email.log" -overwritelog -superdebug -priority 1 -u
***@... -pw **** -f "V.H. <***@...>" -to "***@..." -subject "Test
nastavení: ěščřžýáíé" -body "Test nastavení: ěščřžýáíé"
Part of log:
superDebug: 00140 66 36 40 73 65 7A 6E 61 6D 2E 63 7A 3E 0D 0A 53
***@seznam.cz>..S
superDebug: 00150 75 62 6A 65 63 74 3A 20 3D 3F 55 54 46 2D 38 3F ubject:
=?UTF-8?
superDebug: 00160 51 3F 54 65 73 74 5F 6E 61 73 74 61 76 65 6E 3D
Q?Test_nastaven=
superDebug: 00170 43 33 3D 41 44 3D 33 41 3F 3D 0D 0A 20 3D 3F 55
C3=AD=3A?=.. =?U
superDebug: 00180 54 46 2D 38 3F 51 3F 5F 3D 43 34 3D 39 42 3D 43
TF-8?Q?_=C4=9B=C
superDebug: 00190 35 3D 41 31 3D 43 34 3D 38 44 3D 43 35 3D 39 39
5=A1=C4=8D=C5=99
superDebug: 001A0 3D 43 35 3D 42 45 3D 43 33 3D 42 44 3D 43 33 3D
=C5=BE=C3=BD=C3=
superDebug: 001B0 41 31 3D 43 33 3D 41 44 3D 43 33 3D 41 39 3F 3D
A1=C3=AD=C3=A9?=
superDebug: 001C0 0D 0A 4D 49 4D 45 2D 56 65 72 73 69 6F 6E 3A 20
..MIME-Version:
superDebug: 001D0 31 2E 30 0D 0A 43 6F 6E 74 65 6E 74 2D 54 72 61
1.0..Content-Tra
superDebug: 001E0 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A 20
nsfer-Encoding:
superDebug: 001F0 71 75 6F 74 65 64 2D 70 72 69 6E 74 61 62 6C 65
quoted-printable
superDebug: 00200 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A 20
..Content-Type:
superDebug: 00210 74 65 78 74 2F 70 6C 61 69 6E 3B 0D 0A 20 63 68
text/plain;.. ch
superDebug: 00220 61 72 73 65 74 3D 22 57 49 4E 44 4F 57 53 2D 31
arset="WINDOWS-1
superDebug: 00230 32 35 30 22 0D 0A 0D 0A 54 65 73 74 20 6E 61 73
250"....Test nas
superDebug: 00240 74 61 76 65 6E C3 AD 3A 20 C4 9B C5 A1 C4 8D C5 taven..:
.......
superDebug: 00250 99 C5 BE C3 BD C3 A1 C3 AD C3 A9 0D 0A 2E 0D 0A
................
6) Using the same parameter like in point 1) but with BLAT.EXE (that is
WITHOUT -charset parameter) or in point 3) (i.e. WITH -charset UTF-8
parameter) in command line window (CMD.EXE) outputs the fully correct
e-mail. These are the only two methods how to output correct e-mail with
national letters.
Command:
C:\temp\blat\3.1.1\full>blat - -server smtp.seznam.cz -hdrencq -log
"C:\TEMP\test\email.log" -overwritelog -superdebug -priority 1 -u
***@... -pw **** -f "V.H. <***@...>" -to "***@..." -subject "Test
nastavení: ěščřžýáíé" -body "Test nastavení: ěščřžýáíé"
Part of log:
superDebug: 00140 34 32 40 73 65 7A 6E 61 6D 2E 63 7A 3E 0D 0A 53
***@seznam.cz>..S
superDebug: 00150 75 62 6A 65 63 74 3A 20 3D 3F 55 54 46 2D 38 3F ubject:
=?UTF-8?
superDebug: 00160 51 3F 54 65 73 74 5F 6E 61 73 74 61 76 65 6E 3D
Q?Test_nastaven=
superDebug: 00170 43 33 3D 41 44 3D 33 41 3F 3D 0D 0A 20 3D 3F 55
C3=AD=3A?=.. =?U
superDebug: 00180 54 46 2D 38 3F 51 3F 5F 3D 43 34 3D 39 42 3D 43
TF-8?Q?_=C4=9B=C
superDebug: 00190 35 3D 41 31 3D 43 34 3D 38 44 3D 43 35 3D 39 39
5=A1=C4=8D=C5=99
superDebug: 001A0 3D 43 35 3D 42 45 3D 43 33 3D 42 44 3D 43 33 3D
=C5=BE=C3=BD=C3=
superDebug: 001B0 41 31 3D 43 33 3D 41 44 3D 43 33 3D 41 39 3F 3D
A1=C3=AD=C3=A9?=
superDebug: 001C0 0D 0A 4D 49 4D 45 2D 56 65 72 73 69 6F 6E 3A 20
..MIME-Version:
superDebug: 001D0 31 2E 30 0D 0A 43 6F 6E 74 65 6E 74 2D 54 72 61
1.0..Content-Tra
superDebug: 001E0 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A 20
nsfer-Encoding:
superDebug: 001F0 71 75 6F 74 65 64 2D 70 72 69 6E 74 61 62 6C 65
quoted-printable
superDebug: 00200 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A 20
..Content-Type:
superDebug: 00210 74 65 78 74 2F 70 6C 61 69 6E 3B 0D 0A 20 63 68
text/plain;.. ch
superDebug: 00220 61 72 73 65 74 3D 22 55 54 46 2D 38 22 0D 0A 0D
arset="UTF-8"...
superDebug: 00230 0A 54 65 73 74 20 6E 61 73 74 61 76 65 6E C3 AD .Test
nastaven..
superDebug: 00240 3A 20 C4 9B C5 A1 C4 8D C5 99 C5 BE C3 BD C3 A1 :
..............
superDebug: 00250 C3 AD C3 A9 0D 0A 2E 0D 0A
.........
------------------------------------
I have been using blat 2.6.2. for many years. Now I tried to use the newest
version 3.1.1 and have got big problems with national Czech characters.
On my Windows there is Windows-1250 and when I use blat, everytime the
received e-mail has national characters improperly shown.
It looks like blat now does some defult conversion/translation, but does it
probably improperly and that DLL version works differently from EXE version.
Could you please write me, how to use blat.dll correctly to send e-mail with
national characters?
Vladimir
Details:
I tested it with test text with Czech characters: "Test nastavení:
ěščřžýáíé" (if you can't see the national characters, the text is "Test
nastaveni(i acute,237,0xED): e(e caron,236,0xEC)s(s caron,154,0x9A)c(c
caron,232,0xE8)r(r caron,248,0xF8)z(z caron,158,9E)y(y acute,253,0xFD)a(a
acute,225,0xE1)i(i acute)e(e acute,233,OxE9)"). You can see details on
Windows-1250 code page e.g. on http://en.wikipedia.org/wiki/Windows-1250 or
http://msdn.microsoft.com/en-us/library/cc195052.aspx.
When converted to UTF-8 this text looks like this:
EFBBBF54657374206E6173746176656EC3AD3A20C49BC5A1C48DC599C5BEC3BDC3A1C3ADC3A9
I am using blat.dll called directly from application.
1) When I do not use the -charset option and send this parameter to
blat.dll:
- -server smtp.seznam.cz -hdrencq -log
"C:\TEMP\test\email.log" -overwritelog -superdebug -priority 1 -u
***@... -pw **** -f "V.H. <***@...>" -to "***@..." -subject "Test
nastavení: ěščřžýáíé" -body "Test nastavení: ěščřžýáíé"
then in log is this text:
superDebug: 00150 53 75 62 6A 65 63 74 3A 20 3D 3F 55 54 46 2D 38 Subject:
=?UTF-8
superDebug: 00160 3F 51 3F 54 65 73 74 5F 6E 61 73 74 61 76 65 6E
?Q?Test_nastaven
superDebug: 00170 3D 43 33 3D 39 44 3D 33 41 3F 3D 0D 0A 20 3D 3F
=C3=9D=3A?=.. =?
superDebug: 00180 55 54 46 2D 38 3F 51 3F 5F 3D 43 33 3D 42 44 3D
UTF-8?Q?_=C3=BD=
superDebug: 00190 43 33 3D 39 43 3D 43 35 3D 39 34 3D 43 32 3D 42
C3=9C=C5=94=C2=B
superDebug: 001A0 30 3D 43 33 3D 39 37 3D 43 35 3D 39 39 3D 43 33
0=C3=97=C5=99=C3
superDebug: 001B0 3D 39 46 3D 43 33 3D 39 44 3D 43 33 3D 39 41 3F
=9F=C3=9D=C3=9A?
superDebug: 001C0 3D 0D 0A 4D 49 4D 45 2D 56 65 72 73 69 6F 6E 3A
=..MIME-Version:
superDebug: 001D0 20 31 2E 30 0D 0A 43 6F 6E 74 65 6E 74 2D 54 72
1.0..Content-Tr
superDebug: 001E0 61 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A
ansfer-Encoding:
superDebug: 001F0 20 71 75 6F 74 65 64 2D 70 72 69 6E 74 61 62 6C
quoted-printabl
superDebug: 00200 65 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A
e..Content-Type:
superDebug: 00210 20 74 65 78 74 2F 70 6C 61 69 6E 3B 0D 0A 20 63
text/plain;.. c
superDebug: 00220 68 61 72 73 65 74 3D 22 55 54 46 2D 38 22 0D 0A
harset="UTF-8"..
superDebug: 00230 0D 0A 54 65 73 74 20 6E 61 73 74 61 76 65 6E C3 ..Test
nastaven.
superDebug: 00240 9D 3A 20 C3 BD C3 9C C5 94 C2 B0 C3 97 C5 99 C3 .:
.............
superDebug: 00250 9F C3 9D C3 9A 0D 0A 2E 0D 0A
..........
2)When I use -charset Windows-1250 and send this parameter to blat.dll:
- -server smtp.seznam.cz -charset Windows-1250 -hdrencq -log
"C:\TEMP\test\email.log" -overwritelog -superdebug -priority 1 -u
***@... -pw **** -f "V.H. <***@...>" -to "***@..." -subject "Test
nastavení: ěščřžýáíé" -body "Test nastavení: ěščřžýáíé"
then in log is this text:
superDebug: 00140 34 36 40 73 65 7A 6E 61 6D 2E 63 7A 3E 0D 0A 53
***@seznam.cz>..S
superDebug: 00150 75 62 6A 65 63 74 3A 20 3D 3F 55 54 46 2D 38 3F ubject:
=?UTF-8?
superDebug: 00160 51 3F 54 65 73 74 5F 6E 61 73 74 61 76 65 6E 3D
Q?Test_nastaven=
superDebug: 00170 43 33 3D 39 44 3D 33 41 3F 3D 0D 0A 20 3D 3F 55
C3=9D=3A?=.. =?U
superDebug: 00180 54 46 2D 38 3F 51 3F 5F 3D 43 33 3D 42 44 3D 43
TF-8?Q?_=C3=BD=C
superDebug: 00190 33 3D 39 43 3D 43 35 3D 39 34 3D 43 32 3D 42 30
3=9C=C5=94=C2=B0
superDebug: 001A0 3D 43 33 3D 39 37 3D 43 35 3D 39 39 3D 43 33 3D
=C3=97=C5=99=C3=
superDebug: 001B0 39 46 3D 43 33 3D 39 44 3D 43 33 3D 39 41 3F 3D
9F=C3=9D=C3=9A?=
superDebug: 001C0 0D 0A 4D 49 4D 45 2D 56 65 72 73 69 6F 6E 3A 20
..MIME-Version:
superDebug: 001D0 31 2E 30 0D 0A 43 6F 6E 74 65 6E 74 2D 54 72 61
1.0..Content-Tra
superDebug: 001E0 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A 20
nsfer-Encoding:
superDebug: 001F0 71 75 6F 74 65 64 2D 70 72 69 6E 74 61 62 6C 65
quoted-printable
superDebug: 00200 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A 20
..Content-Type:
superDebug: 00210 74 65 78 74 2F 70 6C 61 69 6E 3B 0D 0A 20 63 68
text/plain;.. ch
superDebug: 00220 61 72 73 65 74 3D 22 57 49 4E 44 4F 57 53 2D 31
arset="WINDOWS-1
superDebug: 00230 32 35 30 22 0D 0A 0D 0A 54 65 73 74 20 6E 61 73
250"....Test nas
superDebug: 00240 74 61 76 65 6E C3 9D 3A 20 C3 BD C3 9C C5 94 C2 taven..:
.......
superDebug: 00250 B0 C3 97 C5 99 C3 9F C3 9D C3 9A 0D 0A 2E 0D 0A
................
3)When I use -charset UTF-8 and send this parameter to blat.dll:
- -server smtp.seznam.cz -charset UTF-8 -hdrencq -log
"C:\TEMP\test\email.log" -overwritelog -superdebug -priority 1 -u
***@... -pw **** -f "V.H. <***@...>" -to "***@..." -subject "Test
nastavení: ěščřžýáíé" -body "Test nastavení: ěščřžýáíé"
then in log is this text:
superDebug: 00150 53 75 62 6A 65 63 74 3A 20 3D 3F 55 54 46 2D 38 Subject:
=?UTF-8
superDebug: 00160 3F 51 3F 54 65 73 74 5F 6E 61 73 74 61 76 65 6E
?Q?Test_nastaven
superDebug: 00170 3D 43 33 3D 39 44 3D 33 41 3F 3D 0D 0A 20 3D 3F
=C3=9D=3A?=.. =?
superDebug: 00180 55 54 46 2D 38 3F 51 3F 5F 3D 43 33 3D 42 44 3D
UTF-8?Q?_=C3=BD=
superDebug: 00190 43 33 3D 39 43 3D 43 35 3D 39 34 3D 43 32 3D 42
C3=9C=C5=94=C2=B
superDebug: 001A0 30 3D 43 33 3D 39 37 3D 43 35 3D 39 39 3D 43 33
0=C3=97=C5=99=C3
superDebug: 001B0 3D 39 46 3D 43 33 3D 39 44 3D 43 33 3D 39 41 3F
=9F=C3=9D=C3=9A?
superDebug: 001C0 3D 0D 0A 4D 49 4D 45 2D 56 65 72 73 69 6F 6E 3A
=..MIME-Version:
superDebug: 001D0 20 31 2E 30 0D 0A 43 6F 6E 74 65 6E 74 2D 54 72
1.0..Content-Tr
superDebug: 001E0 61 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A
ansfer-Encoding:
superDebug: 001F0 20 71 75 6F 74 65 64 2D 70 72 69 6E 74 61 62 6C
quoted-printabl
superDebug: 00200 65 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A
e..Content-Type:
superDebug: 00210 20 74 65 78 74 2F 70 6C 61 69 6E 3B 0D 0A 20 63
text/plain;.. c
superDebug: 00220 68 61 72 73 65 74 3D 22 55 54 46 2D 38 22 0D 0A
harset="UTF-8"..
superDebug: 00230 0D 0A 54 65 73 74 20 6E 61 73 74 61 76 65 6E C3 ..Test
nastaven.
superDebug: 00240 9D 3A 20 C3 BD C3 9C C5 94 C2 B0 C3 97 C5 99 C3 .:
.............
superDebug: 00250 9F C3 9D C3 9A 0D 0A 2E 0D 0A
..........
4) And even when I convert the input subject and body into UTF-8 format:
- -server smtp.seznam.cz -charset UTF-8 -hdrencq -log
"C:\TEMP\test\email.log" -overwritelog -superdebug -priority 1 -u
***@... -pw **** -f "V.H. <***@...>" -to "***@..." -subject "Test
nastavenĂ: Ä>ščĹTžýáĂĂC" -body "Test nastavenĂ: Ä>ščĹTžýáĂĂC"
then in log there is:
superDebug: 00150 53 75 62 6A 65 63 74 3A 20 3D 3F 55 54 46 2D 38 Subject:
=?UTF-8
superDebug: 00160 3F 51 3F 54 65 73 74 5F 6E 61 73 74 61 76 65 6E
?Q?Test_nastaven
superDebug: 00170 3D 45 32 3D 39 34 3D 39 43 3D 43 35 3D 39 46 3D
=E2=94=9C=C5=9F=
superDebug: 00180 33 41 3F 3D 0D 0A 20 3D 3F 55 54 46 2D 38 3F 51 3A?=..
=?UTF-8?Q
superDebug: 00190 3F 5F 3D 45 32 3D 39 34 3D 38 30 3D 43 35 3D 41
?_=E2=94=80=C5=A
superDebug: 001A0 34 3D 45 32 3D 39 34 3D 42 43 3D 43 33 3D 41 44
4=E2=94=BC=C3=AD
superDebug: 001B0 3D 45 32 3D 39 34 3D 38 30 3D 43 35 3D 42 39 3D
=E2=94=80=C5=B9=
superDebug: 001C0 45 32 3D 39 34 3D 42 43 3D 43 33 3D 39 36 3D 45
E2=94=BC=C3=96=E
superDebug: 001D0 32 3F 3D 0D 0A 20 3D 3F 55 54 46 2D 38 3F 51 3F 2?=..
=?UTF-8?Q?
superDebug: 001E0 3D 39 34 3D 42 43 3D 43 35 3D 42 43 3D 45 32 3D
=94=BC=C5=BC=E2=
superDebug: 001F0 39 34 3D 39 43 3D 43 35 3D 42 42 3D 45 32 3D 39
94=9C=C5=BB=E2=9
superDebug: 00200 34 3D 39 43 3D 43 33 3D 41 44 3D 45 32 3D 39 34
4=9C=C3=AD=E2=94
superDebug: 00210 3D 39 43 3D 43 35 3D 39 46 3D 45 32 3D 39 34 3F
=9C=C5=9F=E2=94?
superDebug: 00220 3D 0D 0A 20 3D 3F 55 54 46 2D 38 3F 51 3F 3D 39 =..
=?UTF-8?Q?=9
superDebug: 00230 43 3D 43 34 3D 39 39 3F 3D 0D 0A 4D 49 4D 45 2D
C=C4=99?=..MIME-
superDebug: 00240 56 65 72 73 69 6F 6E 3A 20 31 2E 30 0D 0A 43 6F Version:
1.0..Co
superDebug: 00250 6E 74 65 6E 74 2D 54 72 61 6E 73 66 65 72 2D 45
ntent-Transfer-E
superDebug: 00260 6E 63 6F 64 69 6E 67 3A 20 71 75 6F 74 65 64 2D ncoding:
quoted-
superDebug: 00270 70 72 69 6E 74 61 62 6C 65 0D 0A 43 6F 6E 74 65
printable..Conte
superDebug: 00280 6E 74 2D 54 79 70 65 3A 20 74 65 78 74 2F 70 6C nt-Type:
text/pl
superDebug: 00290 61 69 6E 3B 0D 0A 20 63 68 61 72 73 65 74 3D 22 ain;..
charset="
superDebug: 002A0 55 54 46 2D 38 22 0D 0A 0D 0A 54 65 73 74 20 6E
UTF-8"....Test n
superDebug: 002B0 61 73 74 61 76 65 6E E2 94 9C C5 9F 3A 20 E2 94
astaven.....: ..
superDebug: 002C0 80 C5 A4 E2 94 BC C3 AD E2 94 80 C5 B9 E2 94 BC
................
superDebug: 002D0 C3 96 E2 94 BC C5 BC E2 94 9C C5 BB E2 94 9C C3
................
superDebug: 002E0 AD E2 94 9C C5 9F E2 94 9C C4 99 0D 0A 2E 0D 0A
................
5) Using the same parameter like in point 2) but with BLAT.EXE (that is
WITH -charset Windows-1250 parameter) in command line window (CMD.EXE)
outputs the e-mail that has correctly coded only Subject, but incorrectly
coded Body.
Command:
C:\temp\blat\3.1.1\full>blat - -server smtp.seznam.cz -charset
Windows-1250 -hdrencq -log
"C:\TEMP\test\email.log" -overwritelog -superdebug -priority 1 -u
***@... -pw **** -f "V.H. <***@...>" -to "***@..." -subject "Test
nastavení: ěščřžýáíé" -body "Test nastavení: ěščřžýáíé"
Part of log:
superDebug: 00140 66 36 40 73 65 7A 6E 61 6D 2E 63 7A 3E 0D 0A 53
***@seznam.cz>..S
superDebug: 00150 75 62 6A 65 63 74 3A 20 3D 3F 55 54 46 2D 38 3F ubject:
=?UTF-8?
superDebug: 00160 51 3F 54 65 73 74 5F 6E 61 73 74 61 76 65 6E 3D
Q?Test_nastaven=
superDebug: 00170 43 33 3D 41 44 3D 33 41 3F 3D 0D 0A 20 3D 3F 55
C3=AD=3A?=.. =?U
superDebug: 00180 54 46 2D 38 3F 51 3F 5F 3D 43 34 3D 39 42 3D 43
TF-8?Q?_=C4=9B=C
superDebug: 00190 35 3D 41 31 3D 43 34 3D 38 44 3D 43 35 3D 39 39
5=A1=C4=8D=C5=99
superDebug: 001A0 3D 43 35 3D 42 45 3D 43 33 3D 42 44 3D 43 33 3D
=C5=BE=C3=BD=C3=
superDebug: 001B0 41 31 3D 43 33 3D 41 44 3D 43 33 3D 41 39 3F 3D
A1=C3=AD=C3=A9?=
superDebug: 001C0 0D 0A 4D 49 4D 45 2D 56 65 72 73 69 6F 6E 3A 20
..MIME-Version:
superDebug: 001D0 31 2E 30 0D 0A 43 6F 6E 74 65 6E 74 2D 54 72 61
1.0..Content-Tra
superDebug: 001E0 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A 20
nsfer-Encoding:
superDebug: 001F0 71 75 6F 74 65 64 2D 70 72 69 6E 74 61 62 6C 65
quoted-printable
superDebug: 00200 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A 20
..Content-Type:
superDebug: 00210 74 65 78 74 2F 70 6C 61 69 6E 3B 0D 0A 20 63 68
text/plain;.. ch
superDebug: 00220 61 72 73 65 74 3D 22 57 49 4E 44 4F 57 53 2D 31
arset="WINDOWS-1
superDebug: 00230 32 35 30 22 0D 0A 0D 0A 54 65 73 74 20 6E 61 73
250"....Test nas
superDebug: 00240 74 61 76 65 6E C3 AD 3A 20 C4 9B C5 A1 C4 8D C5 taven..:
.......
superDebug: 00250 99 C5 BE C3 BD C3 A1 C3 AD C3 A9 0D 0A 2E 0D 0A
................
6) Using the same parameter like in point 1) but with BLAT.EXE (that is
WITHOUT -charset parameter) or in point 3) (i.e. WITH -charset UTF-8
parameter) in command line window (CMD.EXE) outputs the fully correct
e-mail. These are the only two methods how to output correct e-mail with
national letters.
Command:
C:\temp\blat\3.1.1\full>blat - -server smtp.seznam.cz -hdrencq -log
"C:\TEMP\test\email.log" -overwritelog -superdebug -priority 1 -u
***@... -pw **** -f "V.H. <***@...>" -to "***@..." -subject "Test
nastavení: ěščřžýáíé" -body "Test nastavení: ěščřžýáíé"
Part of log:
superDebug: 00140 34 32 40 73 65 7A 6E 61 6D 2E 63 7A 3E 0D 0A 53
***@seznam.cz>..S
superDebug: 00150 75 62 6A 65 63 74 3A 20 3D 3F 55 54 46 2D 38 3F ubject:
=?UTF-8?
superDebug: 00160 51 3F 54 65 73 74 5F 6E 61 73 74 61 76 65 6E 3D
Q?Test_nastaven=
superDebug: 00170 43 33 3D 41 44 3D 33 41 3F 3D 0D 0A 20 3D 3F 55
C3=AD=3A?=.. =?U
superDebug: 00180 54 46 2D 38 3F 51 3F 5F 3D 43 34 3D 39 42 3D 43
TF-8?Q?_=C4=9B=C
superDebug: 00190 35 3D 41 31 3D 43 34 3D 38 44 3D 43 35 3D 39 39
5=A1=C4=8D=C5=99
superDebug: 001A0 3D 43 35 3D 42 45 3D 43 33 3D 42 44 3D 43 33 3D
=C5=BE=C3=BD=C3=
superDebug: 001B0 41 31 3D 43 33 3D 41 44 3D 43 33 3D 41 39 3F 3D
A1=C3=AD=C3=A9?=
superDebug: 001C0 0D 0A 4D 49 4D 45 2D 56 65 72 73 69 6F 6E 3A 20
..MIME-Version:
superDebug: 001D0 31 2E 30 0D 0A 43 6F 6E 74 65 6E 74 2D 54 72 61
1.0..Content-Tra
superDebug: 001E0 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A 20
nsfer-Encoding:
superDebug: 001F0 71 75 6F 74 65 64 2D 70 72 69 6E 74 61 62 6C 65
quoted-printable
superDebug: 00200 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A 20
..Content-Type:
superDebug: 00210 74 65 78 74 2F 70 6C 61 69 6E 3B 0D 0A 20 63 68
text/plain;.. ch
superDebug: 00220 61 72 73 65 74 3D 22 55 54 46 2D 38 22 0D 0A 0D
arset="UTF-8"...
superDebug: 00230 0A 54 65 73 74 20 6E 61 73 74 61 76 65 6E C3 AD .Test
nastaven..
superDebug: 00240 3A 20 C4 9B C5 A1 C4 8D C5 99 C5 BE C3 BD C3 A1 :
..............
superDebug: 00250 C3 AD C3 A9 0D 0A 2E 0D 0A
.........
------------------------------------
--
Homepage:
http://www.blat.net
Homepage:
http://www.blat.net