File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ int main()
43
43
string msg_str;
44
44
msg.format (msg_str);
45
45
cout << msg_str << endl;
46
+ // The subject is printed as `=?UTF-8?Q?=D0=97=D0=B4=D1=80=D0=B0=D0=B2=D0=BE,_=D0=A1=D0=B2=D0=B5=D1=82=D0?=\r\n =?UTF-8?Q?=B5!?=`
46
47
}
47
48
48
49
// Set the file encoding to UTF-8 to properly see the letters in this snippet.
@@ -84,12 +85,12 @@ int main()
84
85
string msg_str;
85
86
msg.format (msg_str);
86
87
cout << msg_str << endl;
87
- // The subject is printed as `=?ISO-8859-5?Q?=B7=D4=E0=D0=D2=DE,_=C1=D2=D5=E2=D5?=`.
88
88
}
89
89
90
90
// Set the file encoding to UTF-8 to properly see the letters in this snippet.
91
91
{
92
92
message msg;
93
+ msg.header_codec (message::header_codec_t ::QUOTED_PRINTABLE);
93
94
msg.from (mail_address (" mail io" , " contact@mailio.dev" ));
94
95
msg.add_recipient (mail_address (" mail io" , " contact@mailio.dev" ));
95
96
msg.content_transfer_encoding (mime::content_transfer_encoding_t ::BASE_64);
Original file line number Diff line number Diff line change @@ -4503,7 +4503,7 @@ BOOST_AUTO_TEST_CASE(parse_attachment_utf8)
4503
4503
" Date: Thu, 11 Feb 2016 22:56:22 +0000\r\n "
4504
4504
" MIME-Version: 1.0\r\n "
4505
4505
" Content-Type: multipart/mixed; boundary=\" mybnd\"\r\n "
4506
- " Subject: format attachment utf8\r\n "
4506
+ " Subject: parse attachment utf8\r\n "
4507
4507
" \r\n "
4508
4508
" --mybnd\r\n "
4509
4509
" Content-Type: text/plain; \r\n "
You can’t perform that action at this time.
0 commit comments