Main Page | Report this Page
.NET DotNet Forum Index  »  XML Forum  »  Three characters at beginning of xml file written with...
Page 1 of 1    

Three characters at beginning of xml file written with...

Author Message
Ellie...
Posted: Tue Jun 30, 2009 6:35 am
Guest
Here they are:



They appear at the beginning of the file. If I cut and paste the file with
these characters into a xml validator I get an error. These characters do
not appear in notepad but do in my other text editor. Explorer seems to open
the file ok though. Thanks
 
Martin Honnen...
Posted: Tue Jun 30, 2009 6:50 am
Guest
Ellie wrote:
Quote:
Here they are:



They appear at the beginning of the file. If I cut and paste the file
with these characters into a xml validator I get an error. These
characters do not appear in notepad but do in my other text editor.
Explorer seems to open the file ok though. Thanks

Does that text editor not support Unicode? What you see is (most likely)
a byte order mark (BOM): http://en.wikipedia.org/wiki/Byte-order_mark


--

Martin Honnen --- MVP XML
http://msmvps.com/blogs/martin_honnen/
 
Ellie...
Posted: Tue Jun 30, 2009 9:13 am
Guest
Thanks, that's gotta be it. the xml file is utf-8 and I've got an old
version of textpad. As long as it is normal and won't cause a problem with
any xml readers then that's fine.


"Martin Honnen" <mahotrash at (no spam) yahoo.de> wrote in message
news:%23XZITFY%23JHA.5780 at (no spam) TK2MSFTNGP03.phx.gbl...
Quote:
Ellie wrote:
Here they are:



They appear at the beginning of the file. If I cut and paste the file
with these characters into a xml validator I get an error. These
characters do not appear in notepad but do in my other text editor.
Explorer seems to open the file ok though. Thanks

Does that text editor not support Unicode? What you see is (most likely) a
byte order mark (BOM): http://en.wikipedia.org/wiki/Byte-order_mark


--

Martin Honnen --- MVP XML
http://msmvps.com/blogs/martin_honnen/
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Sat Dec 05, 2009 5:51 pm