A
A
andrey69rus2015-11-20 19:18:49
PHP
andrey69rus, 2015-11-20 19:18:49

Problem with json_encode, what to do?

Hello!
The essence of the question is that the json encode function does not see the data in the variable
Code:
39a668fadbed4c3d83731c4adb1bcd78.png
Result:
cc2eead544e749b5a5723b794254e2fa.png
utf-8 encoding, tell me what is the trouble?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Night, 2015-11-20
@andrey69rus

Mean not UTF-8
Replace with $new['name'] => iconv('cp1251', 'utf-8', $new['name'])

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question