diff --git a/doc/book/basics.tex b/doc/book/basics.tex index ac66959e..62cedb9e 100644 --- a/doc/book/basics.tex +++ b/doc/book/basics.tex @@ -506,6 +506,8 @@ std::cout << std::endl; vmime::string dateStr; vmime::utility::outputStreamStringAdapter outStr(dateStr); +date.generate(outStr); + std::cout << "Current date is: " << dateStr << std::endl; \end{lstlisting} @@ -675,7 +677,7 @@ the encoding/decoding process is done internally by VMime, so creating text objects is fairly simple: \begin{lstlisting}[caption={Creating \vcode{vmime::text} objects}] -vmime::string inText = "Linux dans un téléphone mobile"; +vmime::string inText = "Linux dans un téléphone mobile"; vmime::charset inCharset = "utf-8"; vmime::text outText; @@ -683,7 +685,7 @@ outText.createFromString(inText, inCharset); // 'outText' now contains 3 words: // . "Linux dans un " -// . "téléphone " +// . "téléphone " // . "mobile" vmime::shared_ptr header = myMessage->getHeader();