tags:

views:

41

answers:

2

Hello. I have a problem. file_get_contents and other file functions (like file, fopen, glob etc) not working when i try to get file with non english symbols. I getting error that file not exist. It is going when i using any of that functions from my simple drupal module. But same time when i try to use file_get_contents outside drupal's code (just created separated php file) this function work as it should.

Can you advice something?? What drupal doing so i can't use file functions on file with non english name from my module?

Thanks.

+1  A: 

Are you urlencode() your filename? If not, you need to.

ZZ Coder
thanks, it helped. Urldecode helped actually but you give me right way to move.
Novarg
A: 

there is a transliteration module, i believe it will help you a lot. http://drupal.org/project/transliteration

barraponto