Jump to content
php.lv forumi

@mail un utf-8


Mr. JMT

Recommended Posts

probleema ir sekojosha

--

lapaa ir izmantots utf-8 kodeejums

suutot mailu no formas datiem galaa sanjemot mailu LV simboli paarveershas kjeburos

--

cik saprotu tad buutu jaiznato utf8_encode ()

 

<?

$to = "mail@mail.lv";

$subj = utf8_encode ("$vards $uzvards");

$body = utf8_encode ("$kaut_kas");

@MAIL ($to,$subj,$body,"FROM: {$from}\r\n");

?>

 

---

bet galaa ir $%E%^%

--

vai kaad nevar mani apgaismot??

Link to comment
Share on other sites

jāsūta papildus headeri pašā mailā

Content-type: text/html

Content-encoding: UTF-8

bet tik un tā ne visas mail-programmas utf-8 sapratīs

ja priekš php ir pieietams iconv modulis, tad var izmantot iconv() funckiju utf8 pārtranslēšanai windows-1257 vai kā tamlīdzīgi

Link to comment
Share on other sites

nu es no manuaalja sapratu ka shitaa

 

<?

$headers = "MIME-Version: 1.0\r\n";

$headers .= "Content-type: text/html; charset=utf-8\r\n";

 

$headers .= "To: vakances@tagete.lv\r\n";

$headers .= "From: $from\r\n";

 

$subj = utf8_encode ("$vards $uzvards");

$body = utf8_encode ("$kaut_kas");

@MAIL ($to,$subj,$body,$headers);

?>

 

 

skatos baigaas ar Operas pop veestulju skatiitaaju, un vienalga kjeburi

Edited by Mr. JMT
Link to comment
Share on other sites

×
×
  • Create New...