[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

baffling encoding problem

  • To: xml-dev@l...
  • Subject: baffling encoding problem
  • From: Bryan Rasmussen <bry@i...>
  • Date: Wed, 9 Feb 2005 13:45:44 +0100
  • User-agent: Internet Messaging Program (IMP) 3.2.2

wordpad encoding

Hi,
I need some insight on encoding here. I have an xml instance that has passed
through some parties before it got to me. 

I'm on a windows system. The instance has a declared encoding of UTF-8 and a
BOM
of UTF-8 (EF BB BF). 

In this xml there is a textnode that should have the word Børnehave. 
When I open it in various text editors, notepad, wordpad, it shows Brnhave.
When
I open it in various xml editors some crash saying there is an encoding
problem,
also when I open it in IE. Some editors however feel that it is correct, for
example Crimson and XML SPY, although both of them display it without the ø
sign.  When I open it in 010 editor, the hex editor i use, it shows 42F8 726E
6568 6176 6 which that's right isn't it? I copy that I get Børnehave. 

When I try to load the instance in a DOM using MSXML I get an encoding error, 
when I run it through XSV to validate I get 
 Input error: Illegal UTF-8 byte 2 <0x72> at file offset 1070
 in unnamed entity at line 18 char 27 
which is the r, of course it is at the position where the ø should be. 

If I save it in any editor that feels it is correct I will then have a file that
will open in all the other editors and in IE, load it in dom etc. 


 




-- 
Bryan Rasmussen






PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.