L
L
Leonid Rezvitsky2018-02-10 19:44:09
PHP
Leonid Rezvitsky, 2018-02-10 19:44:09

What to do when downloading audio with a Russian name, it gives out such u0422u0438u043fu0448u0435u043c?

Hello, I need help when downloading a song with a Russian name on the site, it gives out a different encoding such as u0422u0438u043fu0448u0435u043c u0421u0430u0448u0443u043a, I know what the problem is in my php, $audio = json_encode( $audio ); but I need it to remain and Russian letters appear.
What can be done about it? I will be grateful for any help :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
My joy, 2018-02-10
@lrezvitsky

$audio = json_encode($audio, JSON_UNESCAPED_UNICODE);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question