Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with CursorToXML and XMLDOM
Message
De
12/11/2001 05:33:53
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/11/2001 22:27:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00580348
Message ID:
00580373
Vues:
19
>Hi!
>
>I´ve run three simple commands as it follows:
>
>CursorToXML("Cursor","lcXML",1,1)
>oXML = CreateObject("Microsoft.XMLDOM")
>oXML.LoadXML(lcXML)
>
>But it returns a .F.
>
>After some attempts, I´ve discovered that the problem was with the encoding... I´ve need to ripped off the enconding part, doing the following workaround that works fine:
>
>oXML.LoadXML(Strtran(lcXML,[ encoding="Windows-1252"],""))
>
>
>I´ve played with all the options of the CursorToXML´s third parameter, but anyone does works...
>
>Does anybody have any idea of what´s happening?
Claudio,
loadXML only works with UTF-16 or UCS-2 encoding. That's why it works when you strip encoding. In CursorToXML there is no flag supporting UTF-16 or UCS-2 (only in WSDL as I could find).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform