Answer the question
In order to leave comments, you need to log in
CJuiAutocomplete why are the names not displayed normally?
Greetings
, I use CJuiAutocomplete so that the list of contacts and tasks is displayed on the input request
in the action, I form a response like
[
...
{"id":"1", "name":"Vasya", "model":"Contact"}
{"id ":"32", "name":"Purchasing a property", "model":"Deal"}
...
]
before submitting, I wrap everything in json_encode()
everything seems to be according to the documentation, but the response comes like this
type of response - text /html
and I get such a popup
like in jquery autocomplete should automatically decode the response, but why doesn't it happen?
CHADNT?
Answer the question
In order to leave comments, you need to log in
the answer comes normal, in utf-entities, it should be decoded normally.
the response type would be changed to application/json or something like that.
To test json_encode(..., JSON_UNESCAPED_UNICODE) - this will encode text without utf entities (5.4+)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question