Categories | Question details Back To List | ||
dhtmlxCombo : problems with accents Hello, dhtmlxCombo is a very nice script ! I tested your demo "dhtmlxCombo. Working with big datasets", and there is a problem, who can be repeated as often as it is usefull for your tests : By example : -1- you type "cabre", combo displays "cabré". OK -2- you type "cabré" (whith the accent), combo displays "cabré". OK -3- you type "echappe", combo displays "échappés". OK -4- you type "echappé" (with the accent), combo DO NOT suggest "échappés". NOK ! -5- you erase and type only "e", combo do not content suggest "échappés" !? After this error, combo's behavior become surprising with accents. Maybe a problem with the first letter ? if you type the only letter "é", you will never get "échappés" will never appears ! I use IE 6.0 I would like to use your script with main navigators (IE, Mozilla Firefox, etc.) with accents... A solution please ? Many thanks Jean-Michel Answer posted by Support on Dec 03, 2008 04:39 The behavior depends on used server side code, by default copmonet uses utf based escaping for data requesting. When non-utf code used in server side used it will result in above behavior. To fix issue you can locate next string in dhtmlxcombo.js "&mask="+encodeURIComponent(text); and replace with "&mask="+escape(text); >>you type "cabre", combo displays "cabré". OK actually it is a not expected side effect, the search functionality of MySQL doesn't separate normal and accented chars, behavior will be different for client side filtering. Answer posted by Jean-Michel on Dec 03, 2008 09:38 Many thanks for your help. I will try that. |