473,387 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Special characters in xml from dataset

Hi,
When I write out my typed dataset to an xml file on disk, I can not open it
in my browser, because my data contains characters like "ä","ë" and "é".
Is there a way to solve this?

Thanks,
I. Demol
Nov 12 '05 #1
2 2437
How did you write it into disk? If you set the encoding correctly the
serialisation should be able to create a valid XML file.

--
Victor Hadianto
http://synop.com/Products/SauceReader/
"I. Demol" <I. De***@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
Hi,
When I write out my typed dataset to an xml file on disk, I can not open
it
in my browser, because my data contains characters like "ä","ë" and "é".
Is there a way to solve this?

Thanks,
I. Demol

Nov 12 '05 #2
You're right, when I use myDataSet.WriteXml("result.xml") it works fine.
When I used an XmlTextWriter to print it to screen and copy pasted it to
notepad to save to result, it gave an error, even though it was exactly the
same.
But I forgot to save it with encoding :)

Thanks a lot!

"Victor Hadianto" wrote:
How did you write it into disk? If you set the encoding correctly the
serialisation should be able to create a valid XML file.

--
Victor Hadianto
http://synop.com/Products/SauceReader/
"I. Demol" <I. De***@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
Hi,
When I write out my typed dataset to an xml file on disk, I can not open
it
in my browser, because my data contains characters like "ä","ë" and "é".
Is there a way to solve this?

Thanks,
I. Demol


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Roy W. Andersen | last post by:
I've been searching google about this for days but can't find anything, so I'm hoping someone here can help me out. I'm trying to create zip-files without needing the zip-file extension in PHP,...
1
by: Tim | last post by:
I am exporting a dataset to Excel. I can successfully view the dataset in Excel however, there are special characters that are appearing in the form of Â, â€" and others. My code in C# starts...
5
by: Jain, Pranay Kumar | last post by:
Hello Everyone, I have written a simple app. that converts the dataset into excelspreadsheet. The App. uses the following architecture. First it generates the dataset with corresponding...
7
by: Reshma | last post by:
Hello, How to input special characters inside xml like < (Less than) , > (Greater than) as a text Thanks,
0
by: cesark | last post by:
Hi ! (I use VB.NET) I have a dataset that is populated manually through the data entered in a form, but special characters like (ñ, à, á, ï,etc,..) are not stored in the dataset, simply are...
5
by: Sakharam Phapale | last post by:
Hi All, I am using an API function, which takes file path as an input. When file path contains special characters (@,#,$,%,&,^, etc), API function gives an error as "Unable to open input file"....
0
by: SeanGerman | last post by:
Howdy, Is there a way to explicitly escape special characters (particularly & (&amp;) and ' (&apos;)) when writing a data set with the WriteXml method? I know this is supposed to happen...
7
by: Trac Bannon | last post by:
When I load XML from a file into a dotNet XMLDataDocument, the UTF-8 codes are resolved but the 5 special XML entities are not. How can I force those 5 special character types to be translated?
0
by: sums | last post by:
Hi, This scenario is in WebService and Client setup- .NET 1.1 And C# lang. WebService part- I am reading a dataset into XML file using WriteXML(MemoryStream,XMLWriteMode.WriteSchema). ...
3
KevinADC
by: KevinADC | last post by:
Purpose The purpose of this article is to discuss the difference between characters inside a character class and outside a character class and some special characters inside a character class....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.