Re: Problem :file_exists & japanese filename
| From: | Marek Kilimajer | Date: | Fri, 10 Oct 2003 13:01:55 +0000 |
| Subject: | Re: Problem :file_exists & japanese filename | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165737@lists.php.net to get a copy of this message | ||
Mysql uses default-character-set setting in my.cnf, but this is used for
things like sorting and cases. Generaly it will accept any input you
give it. So codepage depends on the source of the input.
Payne wrote:
> What is the codepage for Japanese, that mysql uses?
>
> Payne
>
> Marek Kilimajer wrote:
>
>
>>Is the codepage of filesystem and of the string the same? What do you
>>see if you list the files in the directory using php?
>>
>>umesh wrote:
>>
>>
>>
>>
>>>Hi Gurus,
>>>
>>>I am using PHP4 on linux.
>>>
>>>I am reading the filename from querystring and display it in the browser.
>>>Before displaying , I am checking the existance of the file by using
>>>file_exists.
>>>If the file name contains japanese characters, such as 百人一首.pdf or てす
>>>と.txt, file_exists returns false, though the
>>>file exists at that location. Why ?
>>>
>>>I have compiled PHP with japanese support.
>>>
>>>Can anybody help me ?
>>>
>>>Thanking you in anticipation.
>>>
>>>Regards,
>>>
>>>Umesh.
>>>
>>>
>>>
>>
>>
>>
>
>