kepurs Posted November 22, 2004 Report Share Posted November 22, 2004 Hi Lieta sekojosha - esmu ir web lapa, kur tiek izmantota XML faila satura nolasiishana izmantojot php XML parseri. Versijaa PHP 4.3.9 viss ar BALTIC kodeejumu bija Ok. Paargaaju uz PHP 5 - nestraadaa. Paarbaudiju XML failu - encodings ir "" un LV burti ir Ok. Kur Probleema??? Kepurs Link to comment Share on other sites More sharing options...
bubu Posted November 22, 2004 Report Share Posted November 22, 2004 ...esmu ir web lapa... wtf?php satur dažādus parserus, SAX/DOM/SimpleXML, kuru tieši tu izmanto? Un ja jau tev encodings ir "", tad bez šaubām, ka nekas nestrādās, vajag jau uzstādīt korektu encodingu (visdrīzāk jau tavā gadījumā Windows-1257) Link to comment Share on other sites More sharing options...
kepurs Posted November 22, 2004 Author Report Share Posted November 22, 2004 Par pareizrakstiibu - sorry steidzos. Bet par parseri - lietoju XML parseri. Bet probleemu atradu pats: XML failaa un HTML failaa esosho "windows-1257" uz "utf-8" un LV burti tagad ir Ok. Kljuudiities ir cilveeciigi. B) Kepurs Link to comment Share on other sites More sharing options...
kepurs Posted November 22, 2004 Author Report Share Posted November 22, 2004 ... lietoju visvienkaarshaako parseri, kas ir peec default iebuuveets Link to comment Share on other sites More sharing options...
bubu Posted November 22, 2004 Report Share Posted November 22, 2004 Nu pēc noklusējuma Win versijai php ir iebūvēti visi 3 parseri, gan DOM, gan SAX, gan SimpleXML. Link to comment Share on other sites More sharing options...
jb4 Posted November 22, 2004 Report Share Posted November 22, 2004 Tas ir jāatkārto: - Kādu XML parseri lieto? - Lietoju XML parseri. Link to comment Share on other sites More sharing options...
kepurs Posted November 23, 2004 Author Report Share Posted November 23, 2004 Sorry par manu nezinaashanu ... ar PHP draugos esmu tikai dazas dienas Bet viss buus Ok. :D Lai turpmaak es stulbi taa neteiktu, tad jautaajums: Lasiiju PHP manuaali un tur ir sadalja "XML Parser Functions", kuras izmantoju. KAS SHAJAA GADIIJUMAA TAS IR PAR "XML PARSERI" (nekaadus extensionus neesmu papildus licis klaat)? ;) Kepurs Link to comment Share on other sites More sharing options...
bubu Posted November 23, 2004 Report Share Posted November 23, 2004 Tajā pat sadaļā, otrajā rindkopā skaidri un gaiši uzrakstīts: "This PHP extension implements support for James Clark's expat in PHP". Tātad tu lietoji expat (SAX). Vēl ir šāds: http://lv.php.net/manual/en/ref.domxml.php un šāds: http://lv.php.net/manual/en/ref.simplexml.php Link to comment Share on other sites More sharing options...
kepurs Posted November 23, 2004 Author Report Share Posted November 23, 2004 Thanks, Bubu. Kepurs Link to comment Share on other sites More sharing options...
Recommended Posts