A problem on dataset.readxml function()

  • Thread starter Thread starter Rabbit
  • Start date Start date
R

Rabbit

Hi,
Baiscally I want to know why the function I use will cause error on Web
application, but its working on Win application?

Has anyone tried using a method to read data from XML file using following
syntax:
Dim myDataset as new dataset
myDataset.ReadXML("C:\mydata.xml")

This syntax works perfectly under Windows application, but when I try that
on Web application. It only works for english content data only, such as
following:
<?xml version="1.0" standalone="yes"?>
<tbl_DataSet>
<tbl_News>
<strDesc>News Picture One</strDesc>
</tbl_News>
</tbl_DataSet>

If I have chinese characters inside the xml data file, like the following:
<?xml version="1.0" standalone="yes"?>
<tbl_DataSet>
<tbl_News>
<strDesc>¤¤News Picture One</strDesc>
</tbl_News>
</tbl_DataSet>

The web application prompts error like following:
"There is an invalid character in the given encoding. Line 4, position
14."

Any idea on how to solve this problem??

thx in advance!!
Keith
 
oop! Just resolved it, I was missed to declare the encoding argument!
Anyway, thx for anyone thinking about this!
 
Back
Top