I'm trying to parse HTML data in an email using PHP's IMAP functions.
When I echo imap_body($Mailbox, 1); by example, the HTMl contained inside seems to be converted into开发者_C百科
a different encoding (MIME I suspect)
Here is a sample chunk of $body:
<TH=20
      style=3D"PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: =
5px; COLOR: #fff; PADDING-TOP: 5px; BORDER-BOTTOM: #6eafd0 1px solid; =
BACKGROUND-COLOR: #004454"=20
      align=3Dleft>Site</TH>
How do I convert the received the body data into parsable HTML ?
Thank you
Yes, looks old MIMEish.  Perhaps try $decoded = quoted_printable_decode ( $body );
The "3D" part is a give away: "US-ASCII equal sign (decimal value 61) must be represented by '=3D'". ( wiki on quoted-printable encoding).
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论