problem with autoload combo in dhtmlGrid and german umlauts

Hello,

i’ve got problems with the verifikation in the Grid, if the embedded combo return values with “german umlauts”.
If i select a value for the first time the result list is loaded and the verification works.
If i select the same cell again, the verification returns false until i remove all characters in the combo field and let the list reload by pressing an character (e.g. an “i”) again.

the following XML is loaded by the combo when i press the “i” character (the problem is the “ü” in the word Zürich"):

<?xml version="1.0" encoding="ISO-8859-1"?>Igeli, ZürichIndolfo, Zürich

when i write the word “Zürich” as “Zuerich” everithing works as expected…

the grid code (XML) looks like that:

<?xml version="1.0" encoding="ISO-8859-1"?>inserted13.09.20110

Thank you in advance,
Thomas

Try to mask the umlauts by the responding html-entities before saving the XML.

ü = ü
ö = ö
ä = ä
Ü = Ü
Ö = Ö
Ä = Ä
ß = ß

This should help.

thank you for the quick response…

unfortunally it does not work.
the XML response looks like these now:

<?xml version="1.0" encoding="ISO-8859-1"?>Igeli, Z&uuml;richIndolfo, Z&uuml;rich
<option value="201"><![CDATA[Igeli, Z&uuml;rich]]></option>

Your Problem is, that you let replace the ampersand by & too. Don’t do that and you will solve your problem.

your XML should look like that:

<?xml version="1.0" encoding="ISO-8859-1"?><complete><option value="201">Igeli, Zürich</option><option value="339">Indolfo, Zürich</option></complete>

By the way the syntax given by cm1310 is the best way to build the XML-Tag.

i changed my code to the CDATA syntax…
but this still does not solve my problems…

Maybe i have to explain the context in more detail:

In the Grid the validation is enabled
in_grid.enableValidation(true);

and as verificator a custom method (in_greater_0) is set:
inDataProc.setVerificator(1, in_greater_0);

for testing purposes the verification method looks like this:
function in_greater_0(value, id, ind){
if(ind == 1){
alert("Value: " + value);
return true;
}}

If i select an value from the combo for the first time it will show e.g. the msg “Value: 201”.
So far, this is correct!
If i change to the next column and back to the combo the msg looks like “Value: Igeli, Zürich”.
It seems that the combo lost it’s Value (201) if the selected entry contains “german umlauts”…
If i select any other value without “umlauts” it’ll works properly…

Any Ideas?

Unfortunately the issue cannot be reconstructed.
Please provide a sample of your custom validation function