3.2.0

when populating xml with asp, if international chars present then grid not shows data

if i populate xml data with an asp like: http://www.ogretbana.com/kemal/news/getdata.asp?userid=1
and if there are üðiþçö chars, xml is valid but grid not shows anything..
Serkan Polat
July 28,
i tried <?xml version="1.0" encoding="ISO-8859-9"?> and <?xml version="1.0" encoding="UTF-8"?> when creating xml

getdata.asp:
...
Response.ContentType= "text/xml"
%>
<?xml version="1.0" encoding="ISO-8859-9"?>
<allnews>
<%

do until rs.EOF
tmp="<news>"
for x=0 to rs.Fields.count-1
tmp = tmp & chr(9) & "<" & rs(x).Name & ">" & rs(x) & "</" & rs(x).Name & ">" & chr(13)
next
tmp = tmp & "</news>"
Response.Write tmp
rs.MoveNext
Loop
rs.Close
cn.Close
set rs=nothing
set cn=nothing



this is how i get data

var table = new AW.XML.Table;

table.setURL("getdata.asp?userid=1" );

table.request();

var columns = ["newsid", "pcid", "eventid", "Event Name", "Pc Name","order no","Date","Time","Subject","body","Link","image"];

var obj = new AW.UI.Grid;

obj.setId("myGrid");

obj.setColumnCount(12);

obj.setHeaderText(columns);

obj.setSelectorVisible(true);
obj.setSelectorText(function(i){return this.getRowPosition(i)});
obj.setSelectorWidth(25);

obj.setSelectionMode("single-row");

var str = new AW.Formats.String;
var num = new AW.Formats.Number;

obj.setCellModel(table);
document.write(obj)
Serkan Polat
July 28,
XMLHttpRequest object in IE supports only UTF-8 encoding, so your output should be in UTF-8. I would also recommend completely removing <?xml version=... ?> tag.

Try opening your URL in IE - if it shows it as XML then AW should work as well.
Alex (ActiveWidgets)
July 30,

This topic is archived.

See also:


Back to support forum