=?ISO-8859-1 in mail subject

前端 未结 2 1295
野趣味
野趣味 2021-01-03 03:13

I\'m acquiring the unread mails I have in my GMail account through PHP and its method imap_open

When I get the subjects through the method imap_fetch_ov

2条回答
  •  别那么骄傲
    2021-01-03 03:32

    $or = '=?ISO-8859-1?Q?Informaci=F3n_Apartamento_a_la_Venta?= =?ISO-8859-1?Q?_en_Benasque(Demandas:_0442_______)?=';
    mb_internal_encoding('UTF-8');
    $v = str_replace("_"," ", mb_decode_mimeheader($or));
    

    it works for me (thanks artefacto)

提交回复
热议问题