qwerty Posted February 28, 2015 Report Share Posted February 28, 2015 Pieprasot datus no google smtp servera, tiek dota šāda atbilde: Ce&ATw-ojumi M&ARM-stules Kaut gan būtu jābūt šādi: Ceļojumi Mēstules Caur kādu funkciju šito var izlaist, lai dabūtu atpakaļ latviešu burtus? Link to comment Share on other sites More sharing options...
enkrs Posted February 28, 2015 Report Share Posted February 28, 2015 Google smtp? Man izskatās ka runa ir par Google IMAP. Vajadzīgā funkcija ir mb_convert_encoding: mb_convert_encoding("Ce&ATw-ojumi M&ARM-stules", "utf8", "utf7-imap"); => "Ceļojumi Mēstules" Link to comment Share on other sites More sharing options...
jurchiks Posted February 28, 2015 Report Share Posted February 28, 2015 (edited) Debīli, ka http://php.net/manual/en/function.imap-utf7-decode.php dekodē uz "ISO-8859-1"... Edited February 28, 2015 by jurchiks Link to comment Share on other sites More sharing options...
Recommended Posts