:: Forum >>

Encodings

Hello,

I´m from Iceland, and we use a special codepage in xml files.
The xml normally begins with this line...
<?xml version="1.0" encoding="iso-8859-1" ?>

However when I try the xml example I get the text "No Data Found". The xml file is valid, since I can open it in IE....

Anyone know why a way around this?
Óskar
Friday, October 21, 2005
1,please check you code, and copy it here like the following code:
<script>
var table = new Active.XML.Table;
table.setURL("/examples/data/companies-simple.xml");
table.request();

var obj = new Active.Controls.Grid;
obj.setProperty("column/count", 5);
obj.setModel("data", table);

document.write(obj);
</script>

2,try to move encoding="iso-8859-1" away
Sage(ActiveWidgets)
Friday, October 21, 2005
French user. Same issue here.

In /examples/data/companies-simple.xml, add the company :

<company>
<ticker>René</ticker>
<name>French company</name>
<mktcap>1,000.000</mktcap>
<sales>1.000</sales>
<employees>1</employees>
</company>

=> The grid won't show up.
Note : René is Rene with accent on the last e.

Adding <?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> does not help.

Jean
Friday, October 21, 2005
You need to escape() the data. loadXML() will fail if the data is not escaped properly.

"<ticker>" + escape("René") + "</ticker>"

becomes..

<ticker>Ren%E9</ticker>
Joe Zappitelli
Monday, December 19, 2005

This topic is archived.


Back to support forum

Forum search