Grey_Wolf Posted October 6, 2005 Report Share 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"; Link to comment Share on other sites More sharing options...
Venom Posted October 6, 2005 Report Share Posted October 6, 2005 stipri atkarīgs no pieņemošās programmas, bet dāžreiz palīdz kodēt visu uz base64 Link to comment Share on other sites More sharing options...
litt Posted October 6, 2005 Report Share Posted October 6, 2005 (edited) $subject = '=?' . 'utf-8' . '?' . 'B' . '?' . base64_encode($subject) . '?='; Edited October 6, 2005 by litt Link to comment Share on other sites More sharing options...
Grey_Wolf Posted October 6, 2005 Author Report Share 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 Link to comment Share on other sites More sharing options...
Venom Posted October 6, 2005 Report Share 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 Link to comment Share on other sites More sharing options...
litt Posted October 6, 2005 Report Share 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 Link to comment Share on other sites More sharing options...
Grey_Wolf Posted October 6, 2005 Author Report Share 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... Link to comment Share on other sites More sharing options...
bubu Posted October 6, 2005 Report Share 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 Link to comment Share on other sites More sharing options...
Grey_Wolf Posted October 6, 2005 Author Report Share 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? Link to comment Share on other sites More sharing options...
bubu Posted October 6, 2005 Report Share Posted October 6, 2005 ISO-8859-13, ja nemaldos Bet vai nav izdevīgāk lietot UTF-8? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted October 6, 2005 Author Report Share 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... Link to comment Share on other sites More sharing options...
alins Posted October 16, 2005 Report Share Posted October 16, 2005 :angry: laikam jau shitai probleemai nav universaala risinaajuma!?! izmeegjinaajos visus variantus - rezultaati ljoti atshkjiriigi uz dazhaadiem epastiem Link to comment Share on other sites More sharing options...
Recommended Posts