Jump to content

imap character encoding


jon23d

Recommended Posts

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

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-8).

 

I can remove the characters easily enough, but I would like to actually render them.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.