XML阿拉伯文错误 [英] XML arabic error

查看:70
本文介绍了XML阿拉伯文错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我制作了将数据集转换为记录集的函数,该函数采用从数据集生成的XML字符串.GetXML(),当数据集包含阿拉伯语值时会出现错误.
我想要解决此问题的方法,因为我有很多阿拉伯数据,并且想将其转换为记录集.

谢谢

hi all,
i made function that convert dataset to recordset, this function takes XML string which generated from dataset.GetXML(), the error here come when dataset contains arabic values.
I want solution for this problem because i have alot of arabic data and i want to convert it to recordset.

Thanks

推荐答案

那是错误
抛出运行时异常:System.Runtime.InteropServices.COMException-在文本内容中发现了无效字符.

感谢您的帮助
thats the error
Run-time exception thrown : System.Runtime.InteropServices.COMException - An invalid character was found in text content.

Thanks for help


我在此链接中调用了代码 http://support.microsoft.com /kb/316337 [ ^ ],但我做了更改GetADORS以仅获取来自另一个数据集的XML字符串,然后在该方法内再次创建数据集

i toke the code from this link http://support.microsoft.com/kb/316337[^], but i made change in GetADORS to take only XML string come from another dataset then i''m creating dataset inside the method again

<pre lang="vb">Dim xwriter As New XmlTextWriter(FileName, System.Text.Encoding.Default)
           Dim ds As New DataSet
           Dim xmlSR As StringReader = New StringReader(dsXmlString)
           ds.ReadXml(xmlSR)






这篇关于XML阿拉伯文错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆