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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.