Author: shakti5385 | Posted on: 11/24/2008 3:44:06 AM | Views : 267

 Hi friend my website saving Norwegian character in database, I user nvarchar field for it. In database å converted into &a.
So when I am creating XML file it showing me &a at the please of å. But I want to display å there.
Let me know what is the solution.
Here is my code
 string XMLPath = "~/UserCMS/Language_" + LanguageID.ToString() + ".xml";
string fileName = HttpContext.Current.Server.MapPath(XMLPath);
DataSet ds = ReturnPageContent();
string fileData = "<?xml version=\"1.0\" standalone=\"yes\"?><MM>";
 for (int i = 0; i < dtMain.Rows.Count; i++)
        {
//Adding data here
}
   System.IO.File.WriteAllText(fileName, fileData,System.Text.Encoding.UTF8);

 
Let me know what is the solution of that problem

&n ...

Go to the complete details ...