|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Victor Wagner 2:5020/400 12 Dec 2002 00:35:27 To : Alexander Mikhailian Subject : Re: сервер не выдает кодировку документа -------------------------------------------------------------------------------- Alexander Mikhailian <mikhailian@altern.org> wrote: >> Hу неужели так сложно обзывать файлы например filename.1251.html или >> filename.utf8.html? Вот несколько расширений апач замечательно умеет >> обрабатывать. AM> Стоп, у меня файлы уже называются filename.html.ru filename.html.fr, AM> filename.html.be и так далее. И иногда хочется один из *.ru сделать AM> в уникоде, а другой -- в cp1251. AM> Очевидный выход -- filename.utf8.html.ru filename и cp1251.html.ru, AM> но что-то я сомневаюсь, что апач так сумеет. А в документации написано, что сумеет: Files with Multiple Extensions Files can have more than one extension, and the order of the extensions is normally irrelevant. For example, if the file welcome.html.fr maps onto content type text/html and language French then the file welcome.fr.html will map onto exactly the same information. The only exception to this is if an extension is given which Apache does not know how to handle. In this case it will "forget" about any information it obtained from extensions to the left of the unknown extension. So, for example, if the extensions fr and html are mapped to the appropriate language and type but extension xxx is not assigned to anything, then the file welcome.fr.xxx.html will be associated with content-type text/html but no language. -- System is going downtown now for regular refreshments. --- ifmail v.2.15dev5 * Origin: Free Net of Leninsky,45 (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/151782a7c3061.html, оценка из 5, голосов 10
|