Skip to content

Main content

Encoding: Quoted Printable Line Trailing Space Tool

Encode only terminal spaces/tabs of one quoted-printable content line without CR/LF; not a complete quoted-printable encoder.

Loading tool…

Description

Reject line input containing carriage return or newline.

Quoted-printable body encoding represents selected octets with equals-sign hexadecimal escapes and treats line endings and trailing whitespace specially. Fixing one escape or trailing run does not perform all MIME body transformations.

Reject line input containing carriage return or newline.

When to use this tool

Use Encoding: Quoted Printable Line Trailing Space when checking one quoted-printable literal or trailing-whitespace transformation.

How to use the tool and how it works

  1. Enter line. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read result. Expand result to inspect the returned fields.

Reject line input containing carriage return or newline. Replace its terminal run of ASCII spaces and tabs with =20 and =09 respectively; preserve all earlier characters.1

Quoted-printable has specific escape and trailing-whitespace rules. This transformation covers only the stated fragment, not complete MIME body encoding.2

Input fieldMeaning and unitsAccepted input
lineLineRequired. Text. Implementation limit: 8192 Unicode code points and 16384 UTF-16 code units.
Output fieldInterpretationReturned shape
resultObject containing the named calculated members below.Required. Object.
result.encodedLineEncoded LineCalculated result member: string.
json
{
  "input": {
    "line": "abc \t"
  },
  "output": {
    "result": {
      "encodedLine": "abc=20=09"
    }
  }
}

Limitations and assumptions

  • This handles only trailing horizontal whitespace. It does not encode non-ASCII text, equals signs, line wrapping or complete MIME quoted-printable content.
  • Outputs are nested inside result. Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Use a complete MIME body encoder when byte conversion, line-length limits and soft line breaks matter.

References

  1. Calculation and input contract: encode/quoted-printable-line-trailing-space — tool.io

  2. MIME quoted-printable: RFC 2045 — Internet Engineering Task Force

Similar or alternative tools