SearchSearch   

PHP5 readdir and greek characters

 
   Webmaster Forums (Home) -> PHP MySQL RSS
Next:  array wizardry  
Author Message
edca

External


Since: Dec 23, 2008
Posts: 1



(Msg. 1) Posted: Tue Dec 23, 2008 10:44 am
Post subject: PHP5 readdir and greek characters
Archived from groups: alt>php>sql (more info?)

Help
The function readdir works fine for normal characters but with Gree
filenames I read always ??????
How to fix the problem?
Back to top
J.O. Aho

External


Since: May 31, 2006
Posts: 2034



(Msg. 2) Posted: Tue Dec 23, 2008 11:26 am
Post subject: Re: PHP5 readdir and greek characters
Archived from groups: alt>php>sql, others (more info?)

edca wrote:
> Help
> The function readdir works fine for normal characters but with Gree
> filenames I read always ??????
> How to fix the problem?

This has nothing to do with sql and it's quite rude to multi post, if
you have to post something in more than one place, select a handful
relevant newsgroups and do a cross-post (select more than one
destination news group in the one and only post you make).

The problem is that you use utf-8 for your output from php and your file
system uses iso or another 7/8-bit character setup. If you want to make
your operating system to work properly with utf-8, see to enable the nls
utf-8 as default.

The other option is to convert the file name with iconv() function
before you echo it out.



--

//Aho
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> PHP MySQL
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum