Jump to content

open file in another language


theimmortalbg

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.