LibURL & file-encoding question

tkuypers at pandora.be tkuypers at pandora.be
Wed Jul 23 05:51:03 EDT 2003


Jan,

I figured your solution out about 3 minutes after I sent my mail, but too
bad... It's a no-go :-(

What happens:

Use Explorer to fetch the XML data from the database:
  -> Shows perfect in the browser.
Save the file as an XML-file and re-open it:
  -> Parsing error
Open the XML in Notepad and save with UTF8 encoding:
  -> Shows perfect in the browser.

Then:

Get the url in RR and put it into tXMLData
put uniEncode(tXMLData,"UTF8") into URL("file:" & tFilePath)

Result: < ? x m l  v e r s i o n = " 1 . 0 " etc.
The second byte is obviously not used in the XML, so encoding does what it
has to do, but messes things up.

The XML does not have the encoding-part in the header, when I add it before
saving there is no difference.

Do you know if the XML in the database (Oracle) needs to be "formatted" or
transmitted in a special way by any chance? The strange thing is that
Explorer works with it fine, but saving the file screws it up...

Warm regards,

Ton Kuypers




More information about the use-livecode mailing list