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

Breadcrumb

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

function EncoderInterface::encodeString

Encode a given string to produce an encoded string.

Parameters

int $firstLineOffset if first line needs to be shorter:

int $maxLineLength - 0 indicates the default length for this encoding:

5 methods override EncoderInterface::encodeString()
Base64Encoder::encodeString in vendor/symfony/mime/Encoder/Base64Encoder.php
Takes an unencoded string and produces a Base64 encoded string from it.
EightBitContentEncoder::encodeString in vendor/symfony/mime/Encoder/EightBitContentEncoder.php
Encode a given string to produce an encoded string.
QpContentEncoder::encodeString in vendor/symfony/mime/Encoder/QpContentEncoder.php
Encode a given string to produce an encoded string.
QpEncoder::encodeString in vendor/symfony/mime/Encoder/QpEncoder.php
Takes an unencoded string and produces a QP encoded string from it.
Rfc2231Encoder::encodeString in vendor/symfony/mime/Encoder/Rfc2231Encoder.php
Takes an unencoded string and produces a string encoded according to RFC 2231 from it.

File

vendor/symfony/mime/Encoder/EncoderInterface.php, line 25

Class

EncoderInterface
@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;

API Navigation

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