Re: Base64 and MS Word cutting and pasting.

From: Date: Sun, 25 Aug 2002 04:53:23 +0000
Subject: Re: Base64 and MS Word cutting and pasting.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-114025@lists.php.net to get a copy of this message
Hello, On 08/24/2002 07:17 PM, Dennis Moore wrote:
I have an application which uses the <textarea> tag for users to input data. This works fine. However, some users are using MS Word to generate the text and then cutting and pasting into the <textarea>. This works fine as well. However, I am encountering a problem when the application mails the submitted content. Everything is viewed fine throught the web. We are MIME encoding the message using base64 functions. The problem is that not all email clients are decoding the MS Word pasted content properly. Quotes and apostrophes are not being decoded properly.
I assume the problem is that the MS Word pasted content is not ASCII.    I need to convert this content to ASCII before we encode the MIME message.  
Do you have any ideas?
You should not be using base64 but rather quoted-printable with the right character encoding headers. If you do not know how to do it, take a look at this class and examples to see how to specify the encoding: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos

« previous php.general (#114025) next »