ترميز 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 القابل للطباعة كما هو. فك التشفير يعكس العملية بما فيها فواصل الأسطر اللينة.
- 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.
- ✓ يتعامل مع فواصل الأسطر اللينة (= في نهاية السطر) بشكل صحيح.
- ✓ يُبقي المحتوى ذا الغالبية ASCII مقروءًا بعد الترميز.
- ✓ يعمل بالكامل في المتصفح — لا تُرسل بيانات إلى أي خادم.
الميزات والمواصفات
الأسئلة الشائعة
ما استخدامات ترميز Quoted-Printable؟
يُستخدم Quoted-Printable في بريد MIME لترميز أجسام الرسائل التي تحتوي على أحرف غير ASCII مع إبقاء الرسالة مقروءة إلى حد كبير في صورتها الخام. إنه معياري لأجزاء بريد text/plain وtext/html ذات المحتوى غير ASCII.
كيف يختلف Quoted-Printable عن Base64 في ترميز البريد الإلكتروني؟
يُبقي Quoted-Printable الأحرف ASCII القابلة للطباعة دون تغيير مما يجعل النص المُرمَّد مقروءًا إلى حد كبير. Base64 يُرمّد كل شيء منتجًا إخراجًا مضغوطًا لكن غير مقروء. استخدم QP للمحتوى ذي الغالبية ASCII؛ واستخدم Base64 للمرفقات الثنائية.
ما معنى = في نهاية سطر Quoted-Printable؟
= في نهاية السطر هو فاصل سطر لين — يعني أن السطر يستمر في السطر التالي بدون سطر جديد فعلي في المحتوى المُفكَّك. يُحدّد QP طول السطر بـ 76 حرفًا ويستخدم هذه الاصطلاح لالتفاف الأسطر الطويلة.
لماذا لا يزال إخراج QP المُفكَّك يحتوي على =?UTF-8?Q?؟
هذا هو بناء جملة الكلمة المُرمَّزة 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.
أدوات ذات صلة
ترميز Base64 وفك ترميزه
رمّز النص أو البيانات الثنائية بتنسيق Base64، أو فك ترميز سلاسل Base64 إلى نص عادي، فورًا في متصفحك.
UUencode / UUdecode
رمّد النص أو البيانات الثنائية بصيغة UUencode، أو فك ترميز كتل UUencode إلى الأصل.
ترميز وفك ترميز كيانات HTML
رمّد الأحرف الخاصة ككيانات HTML أو فك ترميز كيانات HTML إلى نص عادي.
أداة ترميز/فك ترميز Quoted-Printable من FileCrank تتعامل مع ترميز QP المتوافق مع RFC 2045 للبريد MIME، مُبقيةً المحتوى ASCII مقروءًا بينما تُرمّد الأحرف غير ASCII كتسلسلات =XX.
Advertisement