Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) XML with French Characters (Read 9132 times)
jprogrammer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Jul 26th, 2006
XML with French Characters
Jul 26th, 2006 at 1:40pm
Print Post  
I am trying to open an XML with French characters and I am getting the following error message.

An invalid character was found in text content.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 1937
Joined: Oct 19th, 2005
Re: XML with French Characters
Reply #1 - Jul 26th, 2006 at 4:00pm
Print Post  
Do you mean the FlowChart.NET's XmlReader displays that message, or is that related to the XML Viewer tool? And is there an "encoding" attribute in the XML declaration?
  
Back to top
 
IP Logged
 
jprogrammer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Jul 26th, 2006
Re: XML with French Characters
Reply #2 - Jul 26th, 2006 at 5:03pm
Print Post  
Sorry I posted this to the from one.  I ment to post it to the XML Viewer.

This error message comes up when I try to load an XML that contain French characters.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 1937
Joined: Oct 19th, 2005
Re: XML with French Characters
Reply #3 - Jul 26th, 2006 at 5:24pm
Print Post  
Is there an "encoding" attribute in the opening XML tag, and what's its value?
  
Back to top
 
IP Logged
 
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 537
Joined: Apr 6th, 2003
Re: XML with French Characters
Reply #4 - Jul 26th, 2006 at 6:06pm
Print Post  
* moved here from the FlowChart.NET board *
  
Back to top
WWW  
IP Logged
 
jprogrammer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Jul 26th, 2006
Re: XML with French Characters
Reply #5 - Jul 26th, 2006 at 6:43pm
Print Post  
I opened the XML in UltraEdit and I do not see an encoding tag.  I will email the XML to you.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: XML with French Characters
Reply #6 - Jul 27th, 2006 at 11:33am
Print Post  
I am trying to open the file you sent me with Internet Explorer 7 and it gives exactly the same mistake: "An invalid character was found in text content. Error processing resource." Have you tried this yourself?

This is expected thought, because XML Viewer is acutally based on MS XML DOM, as is Internet Explorer itself. Anyway, I find it particularly weird that the MS DOM is not able to parse the file.

Can you please try loading the file in IE or in any other XML processing appication?

Meppy
  
Back to top
 
IP Logged
 
jprogrammer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Jul 26th, 2006
Re: XML with French Characters
Reply #7 - Jul 27th, 2006 at 11:59am
Print Post  
I tried another XML viewer and it gave me that the file is not well formed.  I then opened up the XML in Ultra Edit and went to where it said the file was  messed up, this is what was in the file:
<DeptFld HoursPosition="1" ApptRequired="false" HoursText="Lun - Dim : FERM…"/>
This is how the other viewer was reading it:
<DeptFld HoursPosition="1" ApptRequired="false" HoursText="Lun - Dim : FERM&#482;/>
It looks like the viewers are have trouble with the comination of …".
any thoughts.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: XML with French Characters
Reply #8 - Jul 27th, 2006 at 12:59pm
Print Post  
It seems that indeed the character '…' is messing up things. Maybe you should explicitly specify appropriate encoding in the XML file.

By the way, have you tried loading the XML file in Internet Explorer?

Meppy
  
Back to top
 
IP Logged
 
jprogrammer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Jul 26th, 2006
Re: XML with French Characters
Reply #9 - Jul 27th, 2006 at 1:11pm
Print Post  
Yes I did and I got the same message.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 1937
Joined: Oct 19th, 2005
Re: XML with French Characters
Reply #10 - Jul 27th, 2006 at 1:18pm
Print Post  
Add an <?xml version="1.0" encoding="UTF-16"> to the top of the XML document, save it as an Unicode file, and everything will be ok  8)
  
Back to top
 
IP Logged
 
jprogrammer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Jul 26th, 2006
Re: XML with French Characters
Reply #11 - Jul 27th, 2006 at 1:43pm
Print Post  
Thanks a lot. I can open the file now.
I will let our customer know to add this to all of the XML's that they send us.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint