[ xxxrugby @ 26.02.2007. 13:45 ] @
Uglavnom. Strana mi iz CONFIG-a koristi WINDOWS-1250 charset i svugdje je uredno č, ć, š, ž Ali kad pozivem XML i izvučem podatke iz njega i vratim vrijednosti da se ispisu nevalja. xml Code: <?xml version="1.1" encoding="WINDOWS-1250"?> <profil_tjedna> <profil> <id>1</id> <kategorija>senior</kategorija> <datum>01.01.1980</datum> <xml_zapis>xml/profil_tjedna/d_j.xml</xml_zapis> </profil> </profil_tjedna> primjer citanja nije za taj xml al je isti primjer iscitavanja. Code: function ispisi($xml_file, $smarty) { $xml = new DomDocument('1.1'); $xml-> load ($xml_file); $Profil_Tjedna = array(); $XMLProfil_Tjedna = $xml->getElementsByTagName('profil_tjedna')->item(0); foreach($XMLProfil_Tjedna->getElementsByTagName('profil') as $profilNode) { $ime_i_prezime = $profilNode->getElementsByTagName('ime_i_prezime')->item(0)->firstChild->nodeValue; $smarty->assign('ime', $ime_i_prezime); $nadimak = $profilNode->getElementsByTagName('nadimak')->item(0)->firstChild->nodeValue; $smarty->assign('nadimak', $nadimak); $roden = $profilNode->getElementsByTagName('rodjen_u')->item(0)->firstChild->nodeValue; $smarty->assign('roden', $roden); $dan = $profilNode->getElementsByTagName('dana')->item(0)->firstChild->nodeValue; $smarty->assign('dan', $dan); } } u izvucenim podacima iz XML-a nema čćšž npr. slovo ć mi izgleda Code: ć [Ovu poruku je menjao xxxrugby dana 27.02.2007. u 15:09 GMT+1] |