jon23d Posted September 6, 2011 Share Posted September 6, 2011 I am terribly confused... I am trying to display the html body of a message pulled through imap. I thought that if I did this: <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> in the html head, that everything would be pretty much figured out for me, but... When I look at the original message in gmail (prior to being pulled with imap), I get an ellipses(...), but once I display it in my browser, I get a black diamond question mark thingy... Help! I've tried all manners of conversion, but suspect I'm completely missing the boat here. Thanks Link to comment https://forums.phpfreaks.com/topic/246512-imap-character-encoding/ Share on other sites More sharing options...
btherl Posted September 6, 2011 Share Posted September 6, 2011 Have you tried changing the encoding in your browser to see if any other encoding displays it correctly? Link to comment https://forums.phpfreaks.com/topic/246512-imap-character-encoding/#findComment-1265822 Share on other sites More sharing options...
jon23d Posted September 6, 2011 Author Share Posted September 6, 2011 Yes, I have tried this. According to the structure returned from imap_fetchstructure, the part has a charset of 'windows-1252'. At first I thought it might be because I'm on linux, but gmail displays it just fine (and is using the same character set I am, UTF-. I can remove the characters easily enough, but I would like to actually render them. Link to comment https://forums.phpfreaks.com/topic/246512-imap-character-encoding/#findComment-1265830 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.