Re: [PHP] Base64 and MS Word cutting and pasting.

2002-08-25 Thread Dennis Moore
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" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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




 _
 $B%&%#%k%9%a!<%k!"LBOG%a!<%kBP:v$J$i(B MSN Hotmail http://www.hotmail.com/JA


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Base64 and MS Word cutting and pasting.

2002-08-25 Thread @ Edwin
I see. It seems like, asking the users to copy from Word to Notepad then to 
the textarea is not really an option so I guess you really need to find a 
way how to fix it.

How about Manuel Lemos' advice posted earlier?

BTW, I was just wondering if you've also considered that the problem might 
be on the mail client side itself. Because you said that "not all mail 
clients..." so at least on some it worked. When you said that with Notepad 
there's no problem, did you mean that ALL mail clients worked as you 
expected?

Also, I wonder what these "pasted text" are. Perhaps, you can give some 
samples?

I don't really think that I can be of so much help but I'm just curious...

- E

PS
Just in case you haven't seen it. I think, there's a related topic 
discussed in phpbuilder.com. Here's the address:

  http://www.phpbuilder.com/columns/kartic2807.php3


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" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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
 
 
 
 
  _
  $B%&%#%k%9%a!<%k!"LBOG%a!<%kBP:v$J$i(B MSN Hotmail 
http://www.hotmail.com/JA
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





_
$B$+$o$$$/$FL{2w$J%$%i%9%HK~:\(B MSN $B%-%c%i%/%?!<(B http://character.msn.co.jp/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php