我正在使用ReadXML
方法將字符串讀入DataSet
。當我嘗試它返回路徑錯誤中的無效字符。如果我在IE中保存並打開字符串作爲xml文件,它將在encoding="UTF-16"
行上引發錯誤,因此我認爲這是問題的原因。Dataset.ReadXML返回路徑中的無效字符。爲什麼?
有沒有簡單的方法來解決這個問題?它不應該能夠處理unicode或UTF-16嗎?
任何建議將不勝感激。使用C#& .NET 4中
<?xml version="1.0" encoding="UTF-8" ?>
<iCall xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Rows>
<Row>
<Code />
<Title>Test Title</Title>
</Row>
</Rows>
</iCall>