Questions tagged [quoted-printable]

A widely used email encoding that represents all bytes as printable 7-bit ASCII characters using `=` as the escape character, while also limiting line length to 76.

From https://en.wikipedia.org/wiki/Quoted-printable (slightly edited):

Quoted-Printable, or QP encoding, is an encoding using printable ASCII characters [...] to transmit 8-bit data over a 7-bit data path or, generally, over a medium which is not 8-bit clean.

It is defined as a MIME content transfer encoding for use in e-mail. QP works by using the equals sign = as an escape character.

It also limits line length to 76, as some software has limits on line length.

Quoted-Printable is efficient and reasonably human-readable only for input text with mostly 7-bit ASCII characters, such as English text.

105 questions
1
vote
0 answers

MimeUtility decode code can't work on cloud

I have a hive udf for cleaning text, the text is encoded with "quoted-printable", this is the code I refer from online: InputStream is = new ByteArrayInputStream(text.getBytes()); try { InputStream isAfterDecode =…
1
vote
2 answers

detect if a message string is QP Encoded

On FreeBsd system, i am trying to determine if an email message in the form of a c style string is qp encoded? Is there a unix tool like iconv which can read in chunk of data and output the detected encoding? like charset detection? any ideas?
mmc
  • 11
  • 1
1
vote
1 answer

How can I check if the mail content is quoted-printable encoded?

My Python program is decoding all the receiving emails and forwarding some of them with some conditions. It seems most of the emails have contents with ASCII characters or base64 encoded characters. But some of them have contents with…
yoon
  • 1,177
  • 2
  • 15
  • 28
1
vote
2 answers

Stripping out unwanted characters that are breaking readline()

I'm writing a small script to run through large folders of copyright notice emails and finding relevant information (IP and timestamp). I've already found ways around a few little formatting hurdles (sometimes IP and TS are on different lines,…
noringo
  • 11
  • 3
1
vote
3 answers

Decode 'quoted-printable' in python

I want to decode 'quoted-printable' encoded strings in Python, but I seem to be stuck at a point. I fetch certain mails from my gmail account based on the following code: import imaplib import email import quopri mail =…
1
vote
0 answers

How to get two-sequence representation of UTF-8 character using JavaMail's MimeUtility or Apache Commons and quoted-printable?

I'm having a string which contains the German ü character. Its UTF value is 0xFC, but its quoted-printable sequence should actually be =C3=BC instead of =FC. However, using JavaMail's MimeUtility like below, I can only get the single-sequence…
1
vote
5 answers

Make quoted_printable_encode() work on PHP4

I'm trying to use the quoted_printable_encode() and [quoted_prinatble_decode(), but the problem is my server is running PHP4, and according to the PHP docs, quoted_printable_encode() is only available on PHP 5 >= 5.3.0. Does anyone know of a hack or…
user511292
  • 63
  • 7
1
vote
1 answer

convert/decode a mail "quoted-printable" string from a variable with javax.mail.internet.MimeUtility or an other way?

I have a text content of an .eml file that I put in a variable and I would parse its content, including converting different formats. If in the header an "quoted-printable" string have surrounded tags =? Utf-8? Q? ....? = the mimeUtlility.decodeText…
ericire
  • 409
  • 6
  • 22
1
vote
1 answer

Sending email from website using mailto link

That might be silly question but I really need to know the answer. If I got the Outlook client installed on my machine and I click on the mailto link on the website the subject and body specified in the link is passed to the client. Is anything else…
Marqs
  • 17,800
  • 4
  • 30
  • 40
1
vote
1 answer

mime.quotedprintable having trouble decoding this message

I am trying to decode a message which doesn't completely conform to the Quoted Printable String idea. One of the snippets as shown below has an = where should be an =3D this occurs in a number of places. In fact there are two offences occurring…
jim
  • 8,670
  • 15
  • 78
  • 149
1
vote
1 answer

decode a quoted printable message in php

I have the string which that encoded in quoted-printable. How do I decode this in php? Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum felis = pede, vestibulum et, ullamcorper in, ultrices eget, metus. Suspendisse in n= ulla.…
Zoredache
  • 37,543
  • 7
  • 45
  • 61
1
vote
2 answers

What type of encoding is being used?

I am currently making a program in which one of its functions is to extract the HTML part of a Multipart email. I have accomplished that task fine however there is a type of encoding on some of the characters that I can't seem to figure out e.g. ','…
Immanu'el Smith
  • 683
  • 2
  • 8
  • 18
1
vote
2 answers

Random HTML characters being encoded in emails

I'm generating an email with PHP that outputs an HTML table. Most of the table comes through fine, but some of the < and > characters are randomly encoded to < and >. It doesn't always do it in the same place. Sometimes it just happens in one…
brentonstrine
  • 21,694
  • 25
  • 74
  • 120
1
vote
1 answer

MS Entourage 2008 and quoted-printable encoding

I need to send an HTML email. All email clients (Outlook, Thunderbird ..) but Entourage can receive and read this email without major problems. Entourage, though is breaking the content and displays just few lines from the beginning. My guess is…
Gusep
  • 31
  • 1
  • 2
1
vote
1 answer

Encode mail as quoted-printable before sending in Rails

I saw this question and couldn't make use of it: Ruby email encoding and quoted-printable content I'd like to send out email as quoted-printable, but it's going out as unencoded text/html. Any help? class UserMailer < ActionMailer::Base def…
maček
  • 76,434
  • 37
  • 167
  • 198