rauchg / TextboxList

MooTools tokenizer
100 stars 35 forks source link

Is there a way to have autocompletion to work with accented characters ? #18

Open simogeo opened 10 years ago

simogeo commented 10 years ago

Hi,

I use your very great TextboxList jquery plugin. It works well but I'm not able to get it work properly as soon as my values contains accented characters.

I generate my values using PHP. I have tried with both options (see below) without success so I guess the problem is how it getting read by the javascript part.

echo json_encode($response, JSON_UNESCAPED_UNICODE);

generates

[["étalement","étalement",null,"étalement "],["énergie","énergie",null,"énergie"]]

echo json_encode($response);

"[["\u00e9talement","\u00e9talement",null,"\u00e9talement"],["\u00e9nergie","\u00e9nergie",null,"\u00e9nergie"]]

Any help would be welcome. Thanks in advance and thanks again for your plugin.