Categories | Question details Back To List | ||
content-type Hi, In first place, excuse me, but I am trying to solve Content-Type. His answer always went to put "content-type=text/xml" . I think I am very stupid!!! I studied and I tested several of the combinations, and I didn't get to solve the problem. It works in FF and it doesn't work in IE. It follows HTML and XML (static). ----BEGIN HTML <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/xml;charset=iso-8859-1" > <title>Test</title> <link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxgrid.css"> <script src="../../codebase/dhtmlxcommon.js"></script> <script src="../../codebase/dhtmlxgrid.js"></script> <script src="../../codebase/dhtmlxgridcell.js"></script> </head> <body> <TABLE CELLSPACING=0 CELLPADDING=0 VALIGN=CENTER WIDTH='100%' BORDER=0> <TR><TD><CENTER><B>São Paulo</B></CENTER></TD></TR></TABLE><BR> <table width="200px"> <tr> <td> <div id="gridbox2" width="100px" height="250px" style="background-color:white;"></div> </td> </tr> </table> <script> mygrid2 = new dhtmlXGridObject('gridbox2'); var flds = "Alpha"; mygrid2.setHeader(flds); mygrid2.setInitWidths("100") mygrid2.init(); mygrid2.loadXML("Test.xml"); </script> </body> </html> ----END HTML ----BEGIN XML <?xml version="1.0" encoding="iso-8859-1"?> <rows> <row id='r1'><cell>São Paulo</cell></row> </rows> ----END XML To observe the word "São" , in HTML and in XML. Test and please help me!!! What should make to work??? Best regards, CHW Answer posted by Support on May 12, 2008 03:12 Please be sure that you are using http:// like link for loading you sample code , and not direct path on file-system ( c:/sample.html ), because both IE6 and IE7 has native issues with loading non-UTF based XML from local filesystem. While XML of any encoding may be loaded by http:// like link, while loaded from local filesystem IE can accept only UTF based XMLs. Your sample works correctly while loaded from http link. |