Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. QpMimeHeaderEncoder.php

function QpMimeHeaderEncoder::encodeString

Overrides QpEncoder::encodeString

File

vendor/symfony/mime/Encoder/QpMimeHeaderEncoder.php, line 34

Class

QpMimeHeaderEncoder
@author Chris Corbyn

Namespace

Symfony\Component\Mime\Encoder

Code

public function encodeString(string $string, ?string $charset = 'utf-8', int $firstLineOffset = 0, int $maxLineLength = 0) : string {
    return str_replace([
        ' ',
        '=20',
        "=\r\n",
    ], [
        '_',
        '_',
        "\r\n",
    ], parent::encodeString($string, $charset, $firstLineOffset, $maxLineLength));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal