Hi,
I use a POCO lib for my project of email client. I have a problem with parsing subject of email.
example: I receive mail with subject like this
=?utf-8?Q?=D0=A2=D0=92=D1=82=D0=B5=D0=BA=D0=B0_=2D_=D1=80=D0=BE=D1=81=D1=81=D0=B8=D0=B9=D1=81=D0=BA=D0=B8=D0=B5_=D0=BA=D0=B0=D0=BD=D0=B0=D0=BB=D1=8B_=D0=BE=D0=BD=D0=BB=D0=B0=D0=B9=D0=BD?=
Can you tell me how I separate from that string utf-8, Q, and code on easy way with POCO classes?
I decodec this code like this
std::string content;
std::istringstream istr("=D0=A2=D0=92=D1=82=D0=B5=D0=BA=D0=B0_=2D_=D1=80=D0=BE=D1=81=D1=81=D0=B8=D0=B9=D1=81=D0=BA=D0=B8=D0=B5_=D0=BA=D0=B0=D0=BD=D0=B0=D0=BB=D1=8B_=D0=BE=D0=BD=D0=BB=D0=B0=D0=B9=D0=BD");
Poco::Net::QuotedPrintableDecoder qpd(istr);
Poco::StreamCopier::copyToString(qpd, content);
But before this code, I must parse start string.