Quoted-Printable קידוד ופענוח
קודד טקסט כ-Quoted-Printable לאימייל MIME, או פענח מחרוזות QP מקודדות.
MIME email standards require message bodies to use printable ASCII, but most text in the world contains characters outside that range — accented Latin characters, quotation marks, and non-Latin scripts. Quoted-Printable encoding was invented to handle this: it keeps ASCII characters as-is (making the encoded text mostly readable) while encoding non-ASCII bytes as `=XX` sequences, where XX is the byte value in hexadecimal.
This tool encodes UTF-8 text to Quoted-Printable format for use in MIME-compliant email headers or bodies, and decodes QP-encoded strings back to readable text. It is useful for email developers, anyone debugging raw MIME messages in mail server logs, and developers building systems that must interoperate with legacy email infrastructure.
איך לקודד ולפענח Quoted-Printable אונליין
- 1
הדבק את הקלט
הדבק טקסט רגיל לקידוד כ-Quoted-Printable, או מחרוזת QP מקודדת לפענוח.
- 2
בחר קידוד או פענוח
קידוד ממיר תווים שאינם ASCII לרצפי הקס =XX תוך השארת ASCII מודפס ללא שינוי. פענוח הופך את התהליך כולל soft line breaks.
- 3
העתק את התוצאה
העתק את הפלט לשימוש בלקוחות אימייל, כלי MIME, או ניפוי באגים.
How Quoted-Printable Encoding Works
Quoted-Printable (RFC 2045) replaces any byte whose value is outside the printable ASCII range (33–126), or that is a tab or space at the end of a line, with an equals sign followed by two uppercase hex digits — `=C3=A9` for the UTF-8 encoding of `é`. The equals sign itself is encoded as `=3D`. Lines in QP-encoded content must not exceed 76 characters; a soft line break is encoded as `=\r\n` (a trailing equals sign before the CRLF) to indicate that the logical line continues.
QP is a 'mostly printable' encoding: English text encodes with very little overhead because ASCII characters pass through unchanged. This readability was the design goal — a human reading a raw MIME message should be able to understand the gist of the content even without decoding it. By contrast, Base64 encodes everything, producing output that is completely opaque to humans.
למה להשתמש בכלי Quoted-Printable של FileCrank?
- ✓ קידוד ופענוח Quoted-Printable תואם RFC 2045.
- ✓ מטפל נכון ב-soft line breaks (= בסוף שורה).
- ✓ שומר על תוכן ASCII בעיקרו קריא לאדם אחרי קידוד.
- ✓ פועל לחלוטין בדפדפן — שום נתון לא נשלח לשרת.
תכונות ומפרטים
שאלות נפוצות
לשם מה משתמשים בקידוד Quoted-Printable?
Quoted-Printable משמש באימייל MIME לקידוד גופי הודעות המכילים תווים שאינם ASCII תוך שמירה על קריאות ההודעה בצורתה הגולמית. הוא סטנדרטי עבור חלקי אימייל text/plain וtext/html עם תוכן שאינו ASCII.
במה שונה Quoted-Printable מ-Base64 לקידוד אימייל?
Quoted-Printable משאיר תווי ASCII מודפסים ללא שינוי, מה שהופך את הטקסט המקודד לקריא ברובו. Base64 מקודד הכל ומייצר פלט קומפקטי אך לא קריא. השתמש ב-QP לתוכן ASCII בעיקרו; ב-Base64 לקבצים מצורפים בינאריים.
מה המשמעות של = בסוף שורת Quoted-Printable?
= בסוף שורה הוא soft line break — פירושו שהשורה ממשיכה בשורה הבאה ללא מעבר שורה אמיתי בתוכן המפוענח. QP מגביל את אורך השורה ל-76 תווים ומשתמש במוסכמה הזו לעטיפת שורות ארוכות.
למה הפלט המפוענח QP שלי עדיין מכיל =?UTF-8?Q?
זוהי תחביר encoded word של RFC 2047 שמשמש בכותרות אימייל, לא זהה לקידוד גוף QP. הסר את הקידומת =?charset?Q? ואת הסיומת ?= לפני הדבקת מחרוזת QP הפנימית בפענוחן הזה.
Quoted-Printable vs. Base64 in MIME Email
MIME allows content-transfer-encoding to be either `quoted-printable` or `base64`. QP is preferred for text content that is mostly ASCII, as the encoded form remains human-readable and the size overhead is minimal for Latin text. Base64 is preferred for binary attachments and text that is heavily non-ASCII, as it produces a fixed 33% expansion regardless of content. Most email clients choose automatically, but developers building MIME message generators should understand both options.
כלים קשורים
כלי Quoted-Printable של FileCrank מטפל בקידוד QP תואם RFC 2045 לאימייל MIME, שומר על תוכן ASCII קריא תוך קידוד תווים שאינם ASCII כרצפי =XX.
Advertisement