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
1 answer

Javascript decode =C3=B3 quoted printable

I have search a lot but cant find the solution, i want to decode a word like Documentaci=C3=B3n => Documentación in javascript, but i cant. I tried to convert to utf8 when word is like Documentaci%C3%B3n and i can, but never with that "="…
user3647848
  • 21
  • 1
  • 5
1
vote
1 answer

Lotus Domino data as JSON

My object is to be able to get the data from a notesdocument as JSON This I can do by using the Domino Data Service via the URL. The rich text fields are translated to HTML but gets contentTransferEncoding: "quoted-printable" Is there any way I can…
Anders Gram Mygind
  • 1,725
  • 3
  • 11
  • 11
1
vote
4 answers

Best API/LIB for encoding/decoding base64/quoted-printable in Java

Possible Duplicate: Decode Base64 data in java Thanks to everyone in advance, I am aware of http://commons.apache.org/codec/api-release/org/apache/commons/codec/binary/Base64.html etc, can anyone point to me another option preferably one that…
sam
1
vote
2 answers

mime body guess charset (and convert to UTF-8)

I'm trying to parse incoming e-mails and want to store the body as a UTF-8 encoded string in a database, however I've quickly noticed that not all e-mails send charset information in the Content-Type header. After trying some manual quick fixes with…
CharlesLeaf
  • 3,201
  • 19
  • 16
1
vote
3 answers

Converting a String ISO8859-1 to UTF-8 in Java

I have a Q-encoded string variable: String s = "=?ISO-8859-1?Q?Merve_G=FCl?="; And I want to write it on screen with true characters: "Merve Gül". How can I do that? @Nick String string = "=?ISO-8859-1?Q?Merve_G=FCl?="; QCodec q = new QCodec(); …
Merve Gül
  • 1,377
  • 6
  • 23
  • 40
0
votes
3 answers

Remove `=\n` from html

I have a RoundCube plugin that writes the message body to the database and after that I need to parse the data into another table. By using certain functions in RoundCube I am able to remove all html tags and a is replaced by '\n' and is…
Johan Marais
  • 1
  • 1
  • 1
0
votes
1 answer

VB.NET Convert Unicode 8 (UTF8) into Regular American ASCII

I have thing problem here is the debugging outputs "?uƒn74tn5187r&key=6e6e0936c4e6c48be56a72eba8964df0" should be "?u=83n74tn5187r&key=6e6e0936c4e6c48be56a72eba8964df0" I have tried solution from another similar question and it failed me. Dim uni As…
SSpoke
  • 5,656
  • 10
  • 72
  • 124
0
votes
1 answer

How to fix broken Korean text

When we are sending korean email with Exchange Server it arrives with mime content-type quoted-printable and UTF8 charset and HTML tag: . We parse emails with nodemailer; The final…
0
votes
0 answers

Android How to Decode quoted-printable string

I can't find any type of method to decode quoted-printable text into string. If I have a message like this: =20 =20 =20 =20 Google Cloud Platform & APIs =C8 disponibile la tua fattura mensile di Google Cloud…
DoctorWho
  • 1,044
  • 11
  • 34
0
votes
1 answer

How to deal with "=2E" in get_body()?

import email import email.policy import sys msg = email.message_from_string(sys.stdin.read(), policy=email.policy.default) print(msg.get_body('plain').get_payload()) input.eml MIME-Version: 1.0 From: my from To: email@to.com Subject: my…
user1424739
  • 11,937
  • 17
  • 63
  • 152
0
votes
1 answer

Why quoted printable encoding operation in javascript and in Oracle returns different results?

Javascript: //https://www.npmjs.com/package/utf8 //https://github.com/mathiasbynens/quoted-printable par_comment_qoted = quotedPrintable.encode(utf8.encode('test ąčęė')); console.log('par_comment_qoted='+par_comment_qoted); // outpt:…
Vilius Gaidelis
  • 430
  • 5
  • 14
0
votes
1 answer

Python fix french accents parsed as =C3=A9

In python i'm stuck with a couple of strings from french language with accents that I can't convert back to normal, e.g.: word1 = 'install=C3=A9' # should be installé word2 = 'transf=E9r=E9' # should be transféré word3 = 'bient=C3=B4t' # should be…
Waroulolz
  • 297
  • 9
  • 23
0
votes
0 answers

PHP not encoding quoted_printable_encode correctly

I'm trying to add an emoticon(fire) in email subject. Below is the code I'm using: $subject = "Test email \xF0\x9F\x94\xA5"; $charset = "UTF-8"; $subject = sprintf('=?%s?Q?%s?=', $charset, quoted_printable_encode($subject)); // send email.... This…
Jenz
  • 8,280
  • 7
  • 44
  • 77
0
votes
1 answer

quoted_printable_decode some words with accent returns �

The question is about PHP function quoted_printable_decode and returns some � .... Sample (raw before quoted_printable_decode)
Jintor
  • 607
  • 8
  • 32
0
votes
1 answer

Encode to Quoted-Printable in TSQL (or FreeMarker)?

I store the message part of lots of emails in an MsSql database. Before sending an email with the message I need to encode it into Quoted-Printable format. I don't encode it before saving it to db because I want to have the original message. And I…
Carl Björknäs
  • 593
  • 4
  • 15