Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic error message (Read 5746 times)
larsgj
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Mar 4th, 2011
error message
Mar 4th, 2011 at 12:47pm
Print Post  
Hi there
I'm trying to view a XML file with danish characters ÆØÅæøå, but gets the error: An invalid character was found in text content. If i overwrite the danish characters with X or whatever, it works fine.
Thank you in advance.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: error message
Reply #1 - Mar 4th, 2011 at 1:16pm
Print Post  
If you try to open the XML file in Internet Explorer, does it work fine?

Regards,
Meppy
  
Back to top
 
IP Logged
 
larsgj
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Mar 4th, 2011
Re: error message
Reply #2 - Mar 4th, 2011 at 1:41pm
Print Post  
Just tried, and no - actually not possible to open in Internet Explorer too.
I tried Word as well and fail too. Word tells me a line an column no., and that is exactly where the first danish character "æ" is shown.
I was under the impression that various national characters were legal in XML files?  ???
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: error message
Reply #3 - Mar 4th, 2011 at 2:12pm
Print Post  
Try to save the file in UTF-8 or Unicode (and also add the respective Encoding attribute to the xml tag within the file) and test again.

In addition, it appears that if you are creating the XML files with the viewer, setting the Encoding attribute will be enough to save the file in the appropriate encoding. I was able to create the following XML file within the XML viewer and it saves and loads just fine:

Code
Select All
<?xml version="1.0" encoding="utf-8"?>
<doc>
      <element>ÆØÅæøå</element>
</doc> 



Regards,
Meppy
  
Back to top
 
IP Logged
 
larsgj
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Mar 4th, 2011
Re: error message
Reply #4 - Mar 4th, 2011 at 2:15pm
Print Post  
Thank you very much for your help.  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint