Php email body decoding to plain

前端 未结 2 867
后悔当初
后悔当初 2021-01-05 11:05

I\'m tying extract some content of some equal emails with php but I can\'t.

With that:

$body = imap_body($imap_o, $email_n);

I get:

相关标签:
2条回答
  • 2021-01-05 11:55

    and maybe you could set the file encoding. in dw, ctrl+j, title encoding settings, utf8 without bom. or notepad2, file > encoding > utf8

    0 讨论(0)
  • 2021-01-05 12:05

    Try

    $body = utf8_encode(quoted_printable_decode($body));
    
    0 讨论(0)
提交回复
热议问题