Re: Base64 and MS Word cutting and pasting.

From: Date: Sat, 24 Aug 2002 22:37:28 +0000
Subject: Re: Base64 and MS Word cutting and pasting.
Groups: php.general 
Request: Send a blank email to php-general+get-113984@lists.php.net to get a copy of this message
Just some ideas. First, to check if it's really the pasted text from MS Word that is really causing the problem, paste the text from MS Word to a text editor like "notepad" THEN from "notepad" copy and paste to the <textarea> and see if the problem is still there. If it's still there, well, that means it's a different problem. Perhaps, it's about the "quotes and apostrophes" that you've mention so it'd be better to check the manual. See addslashes() or stripslashes(). Or, the problem could be something else. But, I don't really think it's because the pasted text is from MS Word... (Pasted text to the textarea should have been already converted...) - E
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? /dkm
_________________________________________________________________ ウィルスメール、迷惑メール対策なら MSN Hotmail http://www.hotmail.com/JA

« previous php.general (#113984) next »