Re: Base64 and MS Word cutting and pasting.
| From: | Dennis Moore | Date: | Sun, 25 Aug 2002 16:05:14 +0000 |
| Subject: | Re: Base64 and MS Word cutting and pasting. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114060@lists.php.net to get a copy of this message | ||
I've isolated the problem with MS Word and MS Wordpad; The problem does not
occur when pasting from Notepad. I want to make sure that all the text is
ASCII before converting to MIME encoding. This shoul alleviate the problems
that are occuring.
Thanks,
/dkm
----- Original Message -----
From: "@ Edwin" <copperwalls@hotmail.com>
To: <dmoore@ravens-nest.com>
Cc: <php-general@lists.php.net>
Sent: Saturday, August 24, 2002 6:37 PM
Subject: Re: [PHP] Base64 and MS Word cutting and pasting.
> 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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php