hoho Posted October 28, 2006 Report Share Posted October 28, 2006 kaa var stringu parkonverteet no utf8 uz windows-1257? Link to comment Share on other sites More sharing options...
bubu Posted October 28, 2006 Report Share Posted October 28, 2006 http://lv2.php.net/manual/en/function.iconv.php Link to comment Share on other sites More sharing options...
hoho Posted October 28, 2006 Author Report Share Posted October 28, 2006 hmm..es meginaaju izmantot so funkciju un parametrus ut8 un windows-1258, bet rezultaatu man atgriez liidz pirmai garumziimei. Ja teksts bija "asdāēēe" tad rezultāts ir "asdā" Link to comment Share on other sites More sharing options...
bubu Posted October 28, 2006 Report Share Posted October 28, 2006 Nu izlasam funkcijas aprakstu: This means that when a character can't be represented in the target charset, .. str is cut from the first illegal character. Esi pārliecināts, ka teksts ir pareizos kodējumos un esi uzrakstījis utf-8 nevis ut8? Link to comment Share on other sites More sharing options...
hoho Posted October 28, 2006 Author Report Share Posted October 28, 2006 sorry sorry, ut8 bija domaats - utf8 :) jaa, teksts lasas no datu bazes un ir utf8 formaataa :s Link to comment Share on other sites More sharing options...
bubu Posted October 28, 2006 Report Share Posted October 28, 2006 Tas jau neko nenozīmē, ka tu domā, ka teksts "ir" utf8 formātā. Tu pamēģini ieseivot un tad apskatīties vai tiešām ir! Link to comment Share on other sites More sharing options...
Virtuall Posted October 29, 2006 Report Share Posted October 29, 2006 Uzraksti, ko tieši tu raksti Link to comment Share on other sites More sharing options...
Recommended Posts