email - Encoding issue in preheader in iphone native mail client -


i have problem special characters in preheader in iphone 5. when send email shown below (code , headers taken hotmail webclient) shows special characters (æøå) correct in both subject , body itself, however, when it's displayed in preheader shows ? sort of incorrect interpretation of encoding.

the problem occurs when opening email in iphone (tested iphone 5) using native mail client , when it's linked hotmail account. if it's sent other acount e.g gmail , opened in same client it's rendered correctly. problem has been reproduced on 3 different iphones (two of running 7.1.2 not know last 1 running).

in example shown here characters html entities, in other tests i've tried actual characters same result. i've tried without meta headers, still same result.

the example basic can make it, i've tested more realistic emails , have same issue.

has else seen similar issue, or know cause problem ?

subject: =?utf-8?b?w6bdumol?= content-type: multipart/mixed;      boundary="----=_part_434_1665025495.1410355480247" ------=_part_434_1665025495.1410355480247 content-type: multipart/alternative;      boundary="----=_part_435_224090408.1410355480247"  ------=_part_435_224090408.1410355480247 content-type: text/plain; charset="utf-8" content-transfer-encoding: quoted-printable  =e6=f8=e5 abc webcopy text =09 [image] header =09 text =09 [image] header =09 text =09 [image] text =09 unsubscribe text =09 ------=_part_435_224090408.1410355480247 content-type: text/html; charset="utf-8" content-transfer-encoding: 7bit  <!doctype html public "-//w3c//dtd html 4.01 transitional//en""http://www.w3.org/tr/html4/loose.dtd" encoding="utf-8"> <html encoding="utf-8"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" />   <meta name="viewport" content="width=device-width">   <meta name="format-detection" content="telephone=no">   <meta http-equiv="x-ua-compatible" content="ie=edge" /> <body> <div> &#230;&#248;&#229; abc webcopy text </div> </html> ------=_part_435_224090408.1410355480247--  ------=_part_434_1665025495.1410355480247-- 

finally figured out.

the preheader taken text/plain version , not html version, , text/plain version encoded iso-8859-1 , not encoding header stated utf-8. after changing content-encoding header worked perfectly.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -