Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by andreea on Oct 10, 2008 01:50
open dhtmlx forum
Problem loading xml

One of the cells belonging to the grid should be:

q1`233234353';/,,.,,,76887

the error i get is: A name was started with an invalid character. I have tryied addslashes in php but still I get the error .
Answer posted by Support on Oct 10, 2008 05:57
When you forming XML on server side, there must be two possible problems 
a) reseverd chars - XML doesn't allow usage of < > & ( maybe something else) characters in XML - can be resolved by using CDATA
     <cell><![CDATA[  any content safe here ]]></cell>
b) incorrect encoding - by default XML uses UTF encoding ( if you not specify different one in header ) , in such case data in XML must be in UTF ( which mean any high-ASCII char will throw an error ) 

In your case, I strongly suspect that "`" character is not an UTF character, you can try to change <?xml declaration to the 
<?xml version="1.0" encoding="iso-8859-1" ?>