Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 19th, 2005, 01:03 PM
Friend of Wrox
 
Join Date: Aug 2004
Location: , , .
Posts: 117
Thanks: 0
Thanked 2 Times in 2 Posts
Default E-mail Subject

Hi
There is problem on getting subject. Here what I did:
After connecting to the mail server using imap_open() and getting header by using imap_headers(), I used the following script to get a subject:

for($b=0; $b< {size mail box}; $b++)
{
  $mailInfo = imap_headerinfo({Connection}, $b, 80, 80);
  $subject = $mailInfo->fetchsubject;
  echo $subject;
}

when I echo $subject, I can read some E-mail's subjects but some subjects I cannot and they looks like this:

=?utf-8?B?V2luZG93cyBYUCBhbmQgT2ZmaWNlIFhQIGZvciAkODAuIC BpbmNvcnBvcmF0aW5nIEluZG

I used those functions on php.net like base64 and 8bit but still I'm getting the same thing.

can anyone tell me how can i make that right?????

Thanks
Regards
Mani_he

Reply With Quote
  #2 (permalink)  
Old April 19th, 2005, 02:14 PM
Friend of Wrox
 
Join Date: Aug 2004
Location: , , .
Posts: 117
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi
I found that the problem is UTF-8. That means I cannot encode it or ....
but i have no idea how to fix it.

Thanks
Regards
Mani_he

Reply With Quote
  #3 (permalink)  
Old April 29th, 2005, 11:32 AM
Friend of Wrox
 
Join Date: Aug 2004
Location: , , .
Posts: 117
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi
Any idea how can I encode UTF-8?

Thanks
Regards

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to get support on this subject! retribution All Other Wrox Books 4 January 9th, 2009 09:09 AM
subject anabnl BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 August 16th, 2007 05:35 PM
test subject tanu80 ASP.NET 1.x and 2.0 Application Design 1 June 28th, 2007 04:08 AM
Oops, wrong subject! Aaron Edwards ASP.NET 2.0 Basics 0 September 13th, 2006 07:37 PM
mail($to, $subject, $msg, $additional_headers); buzzby PHP How-To 1 September 19th, 2005 01:43 PM



All times are GMT -4. The time now is 11:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.