ajax-live-search icon indicating copy to clipboard operation
ajax-live-search copied to clipboard

JSON - Problem with Umlauts (non-utf8 characters)

Open Labushuya opened this issue 8 years ago • 0 comments

Hello Ehsan,

I fiddled around with your ajax script and debugged with chrome as you mentioned in another Thread. As far as I know from php, json_encode isn't as glorious as many think, because it keeps dropping ("null-ing") relevant data with non-utf8 characters.

Even if you have everything in utf8 standard. So I tried everything with your ajax script from scratch (made only my DB connection information) and kept everything like it was - just to check. Even that won't show me any information from my database containing any umlaut like "ä" or "ß".

Like I said: Everything is in UTF8 - my whole db, every script saved as utf8 w/o bom, headers are set, html tags are set.

Any help?

// EDIT: When I delete every json_encode command in php it shows me as error in chrome just a plain "Array".

Sincerely, Criss

Labushuya avatar Dec 21 '16 15:12 Labushuya