My site was infected with malwares. After I cleaned my site, I noticed that some of wordpress images were not showing because of special character issue. For example this is the image name as displayed on FTP
sandÃÂ-a-asd-123.jpg
But if I access URL through this path it is still not accessible
mysite/imagepath/sandÃ-a-asd-123.jpg
It is only accessible through this path
mysite/imagepath/sandÃ%C2%ADa-asd-123.jpg
Now what should I do here? Should I change all images names in wordpress DB or should I change names through FTP?
Thanks
This wordpress function works for me: remove all special characters from pic name. Hope it helps 😀
add code in functions.php