Reply to UTF-8-encoded files using PHP and Apache

Your name:

Reply:


Posted by ludiskr on 01/09/06 02:37

Hi,

How can I get Apache to recognize and serve files using UTF-8 in their
name, files saved from PHP?

For example, /Vujo%C5%A1evi%C4%87.html
is - Vujoševic.html

Apache tries to serve the following error occurrs:
File does not exist: /www/Vujo\xc5\xa1evi\xc4\x87.html

How I tried saving in PHP:

utf8_encode($filename)
$fp = fopen ($filename, 'w')
....

Using utf8_encode definitely changes the file name, yet still httpd
doesn't find the file.

Thank you and all the best,

Srdjan

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация