theimmortalbg Posted December 14, 2010 Share Posted December 14, 2010 hello can i open file with name in another language rather than english. For example торта.jpg. How can i open that kind of file. I've tryed that <meta content="text/html" charset="utf-8" /> <?php $fh = fopen("торта.jpg", 'r'); fclose($fh); ?> but it's don't work. Help me pls! Link to comment https://forums.phpfreaks.com/topic/221646-open-file-in-another-language/ Share on other sites More sharing options...
upp Posted December 14, 2010 Share Posted December 14, 2010 to be honest i have never worked with foreign languages, but after looking into a couple things i think this is worth a shot, see if urldecode() works for you, let me know if it does or not, you can read about what it does here http://php.net/manual/en/function.urldecode.php Link to comment https://forums.phpfreaks.com/topic/221646-open-file-in-another-language/#findComment-1147327 Share on other sites More sharing options...
theimmortalbg Posted December 14, 2010 Author Share Posted December 14, 2010 doesn't work 001_�����_��������.jpg this is the result .... must have a way to do that Link to comment https://forums.phpfreaks.com/topic/221646-open-file-in-another-language/#findComment-1147434 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.