Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
Richard MacCutchan 28-Sep-10 9:03am    
Quote: "the error here come when dataset contains arabic values.".
Try explaining what the error is and someone may be able to offer some advice.

thats the error
Run-time exception thrown : System.Runtime.InteropServices.COMException - An invalid character was found in text content.

Thanks for help
 
Share this answer
 
Comments
Toniyo Jackson 29-Sep-10 2:29am    
Can you show the code how u r fetching the record?
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)


 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900