Note that there are some explanatory texts on larger screens.

plurals
  1. POphp imap_fetchbody strange encoding
    text
    copied!<p>I have a little problem with imap_fetchbody. I accessed with the script below:</p> <pre><code> $string= "{imap.gmail.com:993/imap/ssl/novalidate-cert}"; $mbox = imap_open($string.$_GET['f'], "mail@gmail.com", "password"); $message = imap_fetchbody($mbox,$_GET['email'],'1.2'); </code></pre> <p>Then I printed the $message content, and I got this:</p> <pre><code> ATTENZIONE Il presente messaggio ed i suoi = allegati devono intendersi ad uso esclusivo dei suoi destinatari e sono = confidenziali. Se ricevete questo messaggio per errore, Vi preghiamo = di cancellarlo, di distruggerne ogni copia e di informarci = immediatamente. Internet non garantisce l'integrit=E0 dei messaggi. = La scrivente declina pertanto ogni responsabilit=E0 in caso di = intercettazione o modifiche del presente = messaggio. </code></pre> <p>I know that E0 is equivalent tot &agrave;, and I could replace it in this case, but I also have some random = signs, and I can't remove them.</p> <p>I'm trying to resolve the problem. I looked at the HTML, and I have this:</p> <pre><code> &lt;p =="" class="3DMsoNormal" style="3D'margin-bottom:12.0pt'"&gt; &lt;span =="" style="3D'font-size:7.5pt;font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;color:#999999=" ;mso-fareast-language:it'=""&gt; ATTENZIONE&lt;br&gt;Il presente messaggio ed i suoi = allegati devono intendersi ad uso esclusivo dei suoi destinatari e sono = confidenziali. &lt;br&gt;Se ricevete questo messaggio per errore, Vi preghiamo = di cancellarlo, di distruggerne ogni copia e di informarci = immediatamente.&lt;br&gt;Internet non garantisce l'integrit=E0 dei messaggi. = La scrivente&amp;nbsp;declina pertanto ogni responsabilit=E0 in caso di = intercettazione o modifiche del presente = messaggio.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; </code></pre> <p>That's pretty strange for HTML. In the HTML tag, I found this:</p> <pre><code>&lt;html xmlns:v="3D&amp;quot;urn:schemas-microsoft-com:vml&amp;quot;" =="" xmlns:o="3D&amp;quot;urn:schemas-microsoft-com:office:office&amp;quot;" xmlns:w="3D&amp;quot;urn:schemas-microsoft-com:office:word&amp;quot;" xmlns:m="3D&amp;quot;http://schemas.microsoft.com/office/2004/12/omml&amp;quot;" xmlns="3D&amp;quot;http://www.w3.org/TR/REC-html40&amp;quot;"&gt;&lt;head&gt;&lt;meta =="" http-equiv="3DContent-Type" content="3D&amp;quot;text/html;" charset="3Diso-8859-1&amp;quot;"&gt;&lt;meta name="3DGenerator" content="3D&amp;quot;Microsoft" word="14" (filtered="" medium)"=""&gt; </code></pre> <p>Does anybody have an idea how to make the = signs disappear?</p> <p>Thanks.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload