~zorba-coders/zorba/email-module

« back to all changes in this revision

Viewing changes to src/com/zorba-xquery/www/modules/email/smtp.xq.src/mime_handler.cpp

  • Committer: Zorba Jenkins
  • Author(s): Paul J. Lucas
  • Date: 2013-08-02 02:41:36 UTC
  • mfrom: (58.1.1 email)
  • Revision ID: jenkins@lambda.nu-20130802024136-pp3wcx574kp606mz
Using the new Base64 API.
Approved: Matthias Brantner, Paul J. Lucas

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
    // if string contains non-ascii chars, we encode it with
86
86
    // base64 encoding and generate a header value according to
87
87
    // http://tools.ietf.org/html/rfc2047 (MIME encoded-word syntax).
88
 
    zorba::String lEncodedValue = zorba::base64::encode(aString);
 
88
    zorba::String lEncodedValue;
 
89
    zorba::base64::encode(aString, &lEncodedValue);
89
90
    zorba::String lFullValue = zorba::String("=?UTF-8?B?") 
90
91
                             + lEncodedValue 
91
92
                             + zorba::String("?=");