Grey_Wolf Posted October 6, 2005 Report Posted October 6, 2005 kaa panaakt lai suutot e-mailu caur f-ju mail subject -buutu ar latvieshu/krievu burtiem? (subject - teksts) pats teksts aiziet normaali.... subject laukaa visi simboli tiek nomainiti pret X? haideris ir shaads... $headers ="MIME-Version: 1.0 \r\n Content-type: text/html; charset=windows-1257"; $headers = $headers."\r\nFrom: $mails_no" . "\r\n" . "Reply-To: $mails_atbilde";
Venom Posted October 6, 2005 Report Posted October 6, 2005 stipri atkarīgs no pieņemošās programmas, bet dāžreiz palīdz kodēt visu uz base64
litt Posted October 6, 2005 Report Posted October 6, 2005 (edited) $subject = '=?' . 'utf-8' . '?' . 'B' . '?' . base64_encode($subject) . '?='; Edited October 6, 2005 by litt
Grey_Wolf Posted October 6, 2005 Author Report Posted October 6, 2005 stipri atkarīgs no pieņemošās programmas, bet dāžreiz palīdz kodēt visu uz base64 24105[/snapback] -- $subjekts=base64_encode("bla bla bla"); pameeginaaju garaam :( vispaar atnaak kjeburi :( pienjemoshaa programma ir qmail
Venom Posted October 6, 2005 Report Posted October 6, 2005 jā-jā, kaut kā bija kā litt rakstīja 9tikai kāpēc tik daudzi "." ? 2Grey_Wolf - nepietiek tikai ar base64 nokodēšanu, vēl jāpamaina contenta transfer-encodings uz to pašu
litt Posted October 6, 2005 Report Posted October 6, 2005 (edited) Tas laikam bija piemērs no tā brīža, kad šo štelli apguvu pa punktiem (visi delimiteri, encodingi). Loģiski, ka var tā $subject = '=?utf-8?B?' . base64_encode($subject) . '?='; Aizmirsu pateikt, ka tādā veidā var (vajag) kodēt arī vārdu, no kura tiek sūtīts e-pasts (lai normāli uzrādās arī Jāņa Rūķīša sūtītie maili) Edited October 6, 2005 by litt
Grey_Wolf Posted October 6, 2005 Author Report Posted October 6, 2005 njus patreiz ir shaadi - probleema nav atrisinaata :( error_reporting(E_ALL); ini_set(display_errors, "1"); $gw_mails_no='bla@bla.lv'; $gw_mails_atbilde='bla@bla.lv'; $gw_sutamais_teksts="loti garš tekstc Testc āĀ čČ Ūū TESTA BEIGAS"; $subjectx1 = base64_encode("Testc āĀ čČ Ūū TESTA BEIGAS"); $headersx1 ="MIME-Version: 1.0 \r\n Content-type: text/html; charset=windows-1257 \r\n Content-Transfer-Encoding: base64"; $headersx1 = $headersx1."\r\nFrom: $gw_mails_no" . "\r\n" . "Reply-To: $gw_mails_atbilde"; $result= mail('programmaiker@inbox.lv', $subjectx1, $gw_sutamais_teksts, $headersx1); echo $result.'X'; subjektaa vienalga latvieshu burtu vietaa Xxxx :( taspatc rezultaats itka taas base64 nebuutu...
bubu Posted October 6, 2005 Report Posted October 6, 2005 (edited) http://www.advogato.org/article/812.html arī te: http://www.freewebspace.net/forums/showthr...goto=nextoldest Pievērs uzmanību mb_encode_mimeheader() fjai. Edited October 6, 2005 by bubu
Grey_Wolf Posted October 6, 2005 Author Report Posted October 6, 2005 Pievērs uzmanību mb_encode_mimeheader() fjai. 24119[/snapback] hm shis jau izskataas ceriigaak vismaz inboxa atsuuta kautko liidziigu latvieshu burtiem ;) kaads ir latvieshu valodas ISO standarts?
bubu Posted October 6, 2005 Report Posted October 6, 2005 ISO-8859-13, ja nemaldos Bet vai nav izdevīgāk lietot UTF-8?
Grey_Wolf Posted October 6, 2005 Author Report Posted October 6, 2005 ISO-8859-13, ja nemaldosBet vai nav izdevīgāk lietot UTF-8? 24122[/snapback] uzliku ISO-8859-13... uz normalu e-mailu viss Ok inboxa nu taa... vismaz nav X bet ir tas jociigais kodeejums a(ar ^) ... Es jau arii labaak izmantotu UTF-8 , bet es tikai taisu nelielu lapas dalju...
alins Posted October 16, 2005 Report Posted October 16, 2005 :angry: laikam jau shitai probleemai nav universaala risinaajuma!?! izmeegjinaajos visus variantus - rezultaati ljoti atshkjiriigi uz dazhaadiem epastiem
Recommended Posts