Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by oVox on Dec 03, 2007 06:55
open dhtmlx forum
dhtmlx Grid Accents Problem

HI!, im evaluating the free grid version, and i get Incorrect XML when i try to get XML with accents (iso-8859-1).
Im, using PHP an IE, here goes an example of my XML (hardcoded in the Dynamic Document for testing) :

$encode = "<?xml version='1.0' encoding='iso-8859-1'?>";
echo $encode . "<rows pos=\"\">
<row id=\"30\">
<cell>Test accentes</cell>
<cell />
<cell>Test accénts</cell>
</row>
</rows>";

When i remove the "é" from "Test accénts" row, everything works fine....can anybody helps?
Thanks,
Answer posted by Support on Dec 03, 2007 07:29
This must work correctly if you sent correct document header

header("Content-type:text/xml");

please inform if problem still occurs for you - we will provide working sample with same XML content.
Answer posted by oVox on Dec 03, 2007 07:58

I have tow PHP pages, the first where are the includes and the definition of the grid and the second one where i build the XML, in wich one do you say that i have te add that Header?

I send you the files, so you can see that both are very simple, and only stop working which accents.

 

Thanks for all.!

Attachments (2)
Answer posted by Support on Dec 03, 2007 08:56
Command can be placed anywhere before starting real output ( echo commands )
Please check attached sample.
Attachments (1)
Answer posted by oVox on Dec 03, 2007 09:42

OK, that works fine!!!!

One more question, im interested to buy DHTMLXGrid and DHTMLXTree, that includes Source Code of everything?

Answer posted on Dec 04, 2007 02:54
All packages contains source code ( in case of pro version it contains additional extensions source code and full code of main js files )
By default source code stored in package\dhtmlxGrid\sources\