Mr. JMT Posted February 4, 2004 Report Posted February 4, 2004 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??
Venom Posted February 4, 2004 Report Posted February 4, 2004 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
Mr. JMT Posted February 5, 2004 Author Report Posted February 5, 2004 (edited) 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 February 5, 2004 by Mr. JMT
рпр Posted February 5, 2004 Report Posted February 5, 2004 nevajag izmantot f-ju utf8_encode, ja jau tev taa lapa ir utfaa,tad tie dati arii naaks utfaa.
Recommended Posts