original_string: protected function _encodeHeader($value)
      {
          if (Zend_Mime::isPrintable($value) === false) {
              if ($this->getHeaderEncoding() === Zend_Mime::ENCODING_QUOTEDPRINTABLE) {
                  $value = Zend_Mime::encodeQuotedPrintableHeader($value, $this->getCharset(), Zend_Mime::LINELENGTH, Zend_Mime::LINEEND);
              } else {
                  $value = Zend_Mime::encodeBase64Header($value, $this->getCharset(), Zend_Mime::LINELENGTH, Zend_Mime::LINEEND);
              }
          }
  
          return $value;
      }
code: protected function _encodeHeader($value)
      {
          if (Zend_Mime::isPrintable($value) === false) {
              if ($this->getHeaderEncoding() === Zend_Mime::ENCODING_QUOTEDPRINTABLE) {
                  $value = Zend_Mime::encodeQuotedPrintableHeader($value, $this->getCharset(), Zend_Mime::LINELENGTH, Zend_Mime::LINEEND);
              } else {
                  $value = Zend_Mime::encodeBase64Header($value, $this->getCharset(), Zend_Mime::LINELENGTH, Zend_Mime::LINEEND);
              }
          }
  
          return $value;
      }
code_tokens: protected function _encodeHeader ( $ value ) { if ( Zend_Mime :: isPrintable ( $ value ) === false ) { if ( $ this -> getHeaderEncoding ( ) === Zend_Mime :: ENCODING_QUOTEDPRINTABLE ) { $ value = Zend_Mime :: encodeQuotedPrintableHeader ( $ value , $ this -> getCharset ( ) , Zend_Mime :: LINELENGTH , Zend_Mime :: LINEEND ) ; } else { $ value = Zend_Mime :: encodeBase64Header ( $ value , $ this -> getCharset ( ) , Zend_Mime :: LINELENGTH , Zend_Mime :: LINEEND ) ; } } return $ value ; }
docstring: Encode header fields
  
  Encodes header content according to RFC1522 if it contains non-printable
  characters.
  
  @param  string $value
  @return string
docstring_tokens: Encode header fields