Re: About Character Set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



oh,it is none of the PHP language's business. you should work on your
Apache Server's Configuration Files.

Best regards,
Sharl.Jimh.Tsin (From China)



2010/10/17 Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx>:
> On Sun, 2010-10-17 at 21:56 +0800, èæ wrote:
>
>> There is a "download" directory(to provide download links) in my site.
>> http://vedaclub.org/download/
>> Some of the filenames contain Chinese characters, which, however cannot be
>> recognized.
>> Is there anything I can do to solve problem?
>>
>> Thanks in advance!
>
>
>
> The short answer is "yes, remove the Chinese characters", however, I
> think you were looking for something a little more automatic?
>
> If the URL itself is causing the problem, maybe you could use the
> urlencode() and urldecode() functions to make the filename for the URL
> web-safe.
>
> Another alternative that I've used before is to give each file an entry
> in a DB and use a moniker to identify the file. The DB can handle all
> sorts of extra functions in the future, such as allowing only specific
> users to access a file, storing multiple versions of the same file
> bearing the same name (on the server each version has a unique name, the
> user need only know that they're requesting template.doc, version 3,
> etc) and many other things.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux