Answer the question
In order to leave comments, you need to log in
How to make the site display url and pictures in Russian letters as picture.jpg?
Good afternoon!
Faced such a problem. There are a lot of pictures in the encoded form
%D0.jpg uploaded to the site.
When opened in a browser, they do not work. And when you try to open site.ru/%D0.jpg directly, it gives 404
How to make the site show such pictures.
Perhaps somewhere there is a detailed instruction for dummies / a solution in htaccess or in php
Answer the question
In order to leave comments, you need to log in
One example is not enough. It can be, for example, Russian letters after URL encoding.
In JavaScript, you need this function: https://developer.mozilla.org/ru/docs/Web/JavaScri...
In PHP, try:
utf8_decode(rawurldecode('site.ru/%D0.jpg'));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question