Link to home
Start Free TrialLog in
Avatar of cubrovic
cubrovicFlag for Serbia

asked on

problem loading Unicode Xml file (no utf8)

I'm using Msxml2.DOMDocument and its method load() for loading xml documents.
it's work fine when loading asci files or UTF-8 files but when i want to load Unicode (16bit) files it want work.
I dont get any error message but my document seems empty with no nodes at all.

Here's my example xml:

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by fonis (fon) -->
<novosti>
     <naslov-strane>Novosti</naslov-strane>
     <opis-strane>Najnovije informacije</opis-strane>
     <novost id="new">
          <naslov>Primeri za kolokvijum</naslov>
          <datum>6.12.2002</datum>
          <tekst>
               Postavljeni primeri za vežbanje kolokvijuma iz Baza Podataka koji æe se održati u subotu u 08:00
          </tekst>
          <jos type="xml" href="literatura-primeri.xml"/>
     </novost>    
</novosti>


Can someone give me solution ?
ASKER CERTIFIED SOLUTION
Avatar of BigRat
BigRat
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cubrovic

ASKER

Now it seems that working but i do it earlier (not ucs-2 but unicode) .I handle my xml files in xmlspy and it change it automaticly.Anyway if i have problems in future with it that will be new question with new points.
I thought that ms domDocument not working with 16 bit characters at all.
Thanks man.