quoted-printable

Java: Encode String in quoted-printable

北城以北 提交于 2019-12-02 07:02:34
I am looking for a way to quoted-printable encode a string in Java just like php's native quoted_printable_encode() function. I have tried to use JavaMails's MimeUtility library. But I cannot get the encode(java.io.OutputStream os, java.lang.String encoding) method to work since it is taking an OutputStream as input instead of a String (I used the function getBytes() to convert the String) and outputs something that I cannot get back to a String (I'm a Java noob :) Can anyone give me tips on how to write a wrapper that converts a String into an OutputStream and outputs the result as a String

How to convert Quoted-Print String

心已入冬 提交于 2019-12-02 02:25:05
问题 I'm working on French String in .NET Decoding a Mail body , I receive "Chasn=C3=A9 sur illet" I would like to get "Chasné sur illet" and i don't find any solution aver 2 days web search. C# ou VB.NET Can anyone helps me ? thanks 回答1: Or the easiest of all, just use the QuotedPrintableDecoder from my MimeKit library: static string DecodeQuotedPrintable (string input, string charset) { var decoder = new QuotedPrintableDecoder (); var buffer = Encoding.ASCII.GetBytes (input); var output = new

PHP sent emails have =0A=0A instead of new lines

半世苍凉 提交于 2019-11-30 20:36:00
For some time now I've had the problem of some of my users getting =0A=0A instead of new lines in emails I send to them via PHP. Correspondence via email client works well, but PHP generated emails always look like this with some users (a minority). Googling revealed no decent results, all search results seem to be connected with outlook somehow - and it is unacceptable to think that all outlook users would suffer from this problem. Does anyone know a correct way of handling this and avoiding these new line encoding issues? Edit: FYI I'm using Zend's Mailer class. Thanks Edit 2: Changing the

PHP sent emails have =0A=0A instead of new lines

陌路散爱 提交于 2019-11-30 04:51:02
问题 For some time now I've had the problem of some of my users getting =0A=0A instead of new lines in emails I send to them via PHP. Correspondence via email client works well, but PHP generated emails always look like this with some users (a minority). Googling revealed no decent results, all search results seem to be connected with outlook somehow - and it is unacceptable to think that all outlook users would suffer from this problem. Does anyone know a correct way of handling this and avoiding

Encode MIMEText as quoted printables

余生颓废 提交于 2019-11-29 12:26:09
问题 Python supports a quite functional MIME-Library called email.mime . What I want to achieve is to get a MIME Part containing plain UTF-8 text to be encoded as quoted printables and not as base64. Although all functionallity is available in the library, I did not manage to use it: Example: import email.mime.text, email.encoders m=email.mime.text.MIMEText(u'This is the text containing ünicöde', _charset='utf-8') m.as_string() # => Leads to a base64-encoded message, as base64 is the default.

C#: Class for decoding Quoted-Printable encoding?

穿精又带淫゛_ 提交于 2019-11-26 14:35:36
Is there an existing class in C# that can convert Quoted-Printable encoding to String ? Click on the above link to get more information on the encoding. The following is quoted from the above link for your convenience. Any 8-bit byte value may be encoded with 3 characters, an "=" followed by two hexadecimal digits (0–9 or A–F) representing the byte's numeric value. For example, a US-ASCII form feed character (decimal value 12) can be represented by "=0C", and a US-ASCII equal sign (decimal value 61) is represented by "=3D". All characters except printable ASCII characters or end of line

C#: Class for decoding Quoted-Printable encoding?

本小妞迷上赌 提交于 2019-11-26 03:39:43
问题 Is there an existing class in C# that can convert Quoted-Printable encoding to String ? Click on the above link to get more information on the encoding. The following is quoted from the above link for your convenience. Any 8-bit byte value may be encoded with 3 characters, an \"=\" followed by two hexadecimal digits (0–9 or A–F) representing the byte\'s numeric value. For example, a US-ASCII form feed character (decimal value 12) can be represented by \"=0C\", and a US-ASCII equal sign