* Re: [Comm] wget, кодировки и русские имена файлов @ 2008-11-25 9:39 ` Константин Михайленко 2008-11-25 9:41 ` Константин Михайленко 0 siblings, 1 reply; 6+ messages in thread From: Константин Михайленко @ 2008-11-25 9:39 UTC (permalink / raw) To: ALT Linux Community general discussions Я их wget-ом брал.. без проблем. Может дело в терминале у вас? 25 ноября 2008 г. 13:43 пользователь Денис Черносов <denis0.ru@gmail.com> написал: > На planet.altlinux.org нашел ссылки на конкурсные материалы по преподаванию > в школах на базе СПО. Начал качать... сначала руками, потом flashget-ом > (который зовет kget), потом захотелось wget использовать. Наткнулся на > грабли: русские имена файлов сохраняются в безопасном виде: > > Автосалон.odb -> �%90в�%82о�%81алон.odb > > > $ wget > http://freecode.pspo.perm.ru/163//%D0%9A%D0%BE%D0%BD%D0%BA%D1%83%D1%80%D1%81/%d0%9f%d1%80%d0%b8%d0%bc%d0%b5%d1%80%d1%8b%20%d0%91%d0%94/%d0%90%d0%b2%d1%82%d0%be%d1%81%d0%b0%d0%bb%d0%be%d0%bd.odb > --2008-11-25 12:35:44-- > http://freecode.pspo.perm.ru/163//%D0%9A%D0%BE%D0%BD%D0%BA%D1%83%D1%80%D1%81/%d0%9f%d1%80%d0%b8%d0%bc%d0%b5%d1%80%d1%8b%20%d0%91%d0%94/%d0%90%d0%b2%d1%82%d0%be%d1%81%d0%b0%d0%bb%d0%be%d0%bd.odb > Распознаётся freecode.pspo.perm.ru... 77.43.139.94 > Устанавливается соединение с freecode.pspo.perm.ru|77.43.139.94|:80... > соединение установлено. > Запрос HTTP послан, ожидается ответ... 200 OK > Длина: 50209 (49K) [text/plain] > Сохраняется в каталог: `�%90в�%82о�%81алон.odb'. > > 100%[==================================================================================>] > 50 209 8,26K/s в 5,9s > > 2008-11-25 12:35:50 (8,26 KB/s) - `�%90в�%82о�%81алон.odb' сохранён > [50209/50209] > > > > И кодировка сервера выдается iso-8859-1, а не utf-8, как должно быть. > Пробовал такой скрипт для загрузки всего содержимого: > > #!/bin/sh > wget -r -np -S \ > --header="Accept-Charset: utf-8" \ > --header="Content-Language: ru,en" \ > http://freecode.pspo.perm.ru/163/Конкурс/ > > Но не помогает. Поисковики не помогли. Наверное плохо спрашивал... Что я > делаю неправильно? > > > _______________________________________________ > community mailing list > community@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/community > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] wget, кодировки и русские имена файлов 2008-11-25 9:39 ` [Comm] wget, кодировки и русские имена файлов Константин Михайленко @ 2008-11-25 9:41 ` Константин Михайленко 0 siblings, 1 reply; 6+ messages in thread From: Константин Михайленко @ 2008-11-25 9:41 UTC (permalink / raw) To: ALT Linux Community general discussions Вру, не отсюда их брал. Тут та же проблема: сервер гадит. Вариант: используйте параметр -О 25 ноября 2008 г. 14:39 пользователь Константин Михайленко <const.mkh@gmail.com> написал: > Я их wget-ом брал.. без проблем. Может дело в терминале у вас? > > 25 ноября 2008 г. 13:43 пользователь Денис Черносов > <denis0.ru@gmail.com> написал: >> На planet.altlinux.org нашел ссылки на конкурсные материалы по преподаванию >> в школах на базе СПО. Начал качать... сначала руками, потом flashget-ом >> (который зовет kget), потом захотелось wget использовать. Наткнулся на >> грабли: русские имена файлов сохраняются в безопасном виде: >> >> Автосалон.odb -> �%90в�%82о�%81алон.odb >> >> >> $ wget >> http://freecode.pspo.perm.ru/163//%D0%9A%D0%BE%D0%BD%D0%BA%D1%83%D1%80%D1%81/%d0%9f%d1%80%d0%b8%d0%bc%d0%b5%d1%80%d1%8b%20%d0%91%d0%94/%d0%90%d0%b2%d1%82%d0%be%d1%81%d0%b0%d0%bb%d0%be%d0%bd.odb >> --2008-11-25 12:35:44-- >> http://freecode.pspo.perm.ru/163//%D0%9A%D0%BE%D0%BD%D0%BA%D1%83%D1%80%D1%81/%d0%9f%d1%80%d0%b8%d0%bc%d0%b5%d1%80%d1%8b%20%d0%91%d0%94/%d0%90%d0%b2%d1%82%d0%be%d1%81%d0%b0%d0%bb%d0%be%d0%bd.odb >> Распознаётся freecode.pspo.perm.ru... 77.43.139.94 >> Устанавливается соединение с freecode.pspo.perm.ru|77.43.139.94|:80... >> соединение установлено. >> Запрос HTTP послан, ожидается ответ... 200 OK >> Длина: 50209 (49K) [text/plain] >> Сохраняется в каталог: `�%90в�%82о�%81алон.odb'. >> >> 100%[==================================================================================>] >> 50 209 8,26K/s в 5,9s >> >> 2008-11-25 12:35:50 (8,26 KB/s) - `�%90в�%82о�%81алон.odb' сохранён >> [50209/50209] >> >> >> >> И кодировка сервера выдается iso-8859-1, а не utf-8, как должно быть. >> Пробовал такой скрипт для загрузки всего содержимого: >> >> #!/bin/sh >> wget -r -np -S \ >> --header="Accept-Charset: utf-8" \ >> --header="Content-Language: ru,en" \ >> http://freecode.pspo.perm.ru/163/Конкурс/ >> >> Но не помогает. Поисковики не помогли. Наверное плохо спрашивал... Что я >> делаю неправильно? >> >> >> _______________________________________________ >> community mailing list >> community@lists.altlinux.org >> https://lists.altlinux.org/mailman/listinfo/community >> > ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <d77783290811250150n37b6772fs5bc01eacd16a8fde@mail.gmail.com>]
* Re: [Comm] wget, кодировки и русские имена файлов @ 2008-11-25 10:05 ` Геннадий Ищенко 1 sibling, 0 replies; 6+ messages in thread From: Геннадий Ищенко @ 2008-11-25 10:05 UTC (permalink / raw) To: community 25 ноября 2008 г. 13:41 пользователь Константин Михайленко <const.mkh@gmail.com> написал: > Вру, не отсюда их брал. > Тут та же проблема: сервер гадит. Вариант: используйте параметр -О > Дык нахрена тогда вообще wget, если с этим параметром рекурсивно > выкачивать нельзя?! > Так и kget хорошо работает. Задал вопрос по каждому файлу в папке и > качает потихоньку... Кстати, хотя и не совсем по теме, хоть кто-нибудь знает как заставить kget работать в ftp с русскими именами? С уважением, Ищенко Геннадий ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <d77783290811250205q5a751e4ar39754810902c4fdd@mail.gmail.com>]
* Re: [Comm] wget, кодировки и русские имена файлов @ 2008-11-25 10:20 ` Костарев Алексей 2008-11-25 10:25 ` Sergey Kudriavtsev 0 siblings, 1 reply; 6+ messages in thread From: Костарев Алексей @ 2008-11-25 10:20 UTC (permalink / raw) To: ALT Linux Community general discussions Денис Черносов пишет: > > > 25 ноября 2008 г. 13:50 пользователь Денис Черносов <denis0.ru > <http://denis0.ru>@gmail.com <http://gmail.com>> написал: > > А в этой рассылке есть люди, которые имеют отношение к > вышеупомянутому серверу и смогут хотя бы кодировку страниц в > папках поправить? Чтобы не приходилось руками utf-8 выставлять... > Мне кажется, что и траблы с именами файлов в тех же конфигах > решаются... > Как вариант - перевести все имена в транслит. > Кто бы подсказал как настроить apache2 для отображения в кодировке UTF8 при выводе списка директория AddDefaultCharset UTF-8 в httpd.conf не помогает... А с wget думаю что это проблемы wget'а Или после настройки на UTF-8 проблема решится А иначе как перехватывать обращение к фйалу по имени... > > > Для верности, написал в их суппорт. Да уж - ударили по всем фронтам... > ------------------------------------------------------------------------ > > _______________________________________________ > community mailing list > community@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/community -- С Уважением Директор ООО НЕВОД Костарев А.Ф. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] wget, кодировки и русские имена файлов 2008-11-25 10:20 ` Костарев Алексей @ 2008-11-25 10:25 ` Sergey Kudriavtsev 2008-11-25 10:36 ` Костарев Алексей 0 siblings, 1 reply; 6+ messages in thread From: Sergey Kudriavtsev @ 2008-11-25 10:25 UTC (permalink / raw) To: ALT Linux Community general discussions Костарев Алексей пишет: > Кто бы подсказал как настроить apache2 для отображения в кодировке UTF8 > при выводе списка директория > AddDefaultCharset UTF-8 > в httpd.conf не помогает... > А с wget думаю что это проблемы wget'а > Или после настройки на UTF-8 проблема решится > А иначе как перехватывать обращение к фйалу по имени... Не уверен, что совсем в тему, но когда-то озаботился приданием определённого вида листингу файлов, который выдаёт Apache. Содержимое .htaccess для директории: IndexOptions Charset=UTF-8 IndexOptions FoldersFirst HTMLTable NameWidth=* SuppressDescription\ SuppressLastModified XHTML FancyIndexing Может быть поможет. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] wget, кодировки и русские имена файлов 2008-11-25 10:25 ` Sergey Kudriavtsev @ 2008-11-25 10:36 ` Костарев Алексей 0 siblings, 0 replies; 6+ messages in thread From: Костарев Алексей @ 2008-11-25 10:36 UTC (permalink / raw) To: ALT Linux Community general discussions Sergey Kudriavtsev пишет: > Костарев Алексей пишет: >> Кто бы подсказал как настроить apache2 для отображения в кодировке >> UTF8 при выводе списка директория >> AddDefaultCharset UTF-8 >> в httpd.conf не помогает... >> А с wget думаю что это проблемы wget'а >> Или после настройки на UTF-8 проблема решится >> А иначе как перехватывать обращение к фйалу по имени... > > Не уверен, что совсем в тему, но когда-то озаботился приданием > определённого вида листингу файлов, который выдаёт Apache. Содержимое > .htaccess для директории: > > IndexOptions Charset=UTF-8 > IndexOptions FoldersFirst HTMLTable NameWidth=* SuppressDescription\ > SuppressLastModified XHTML FancyIndexing > > Может быть поможет. О спасибо - помогло... Как там wget с русскими в этом случае?? Вообще-то сайт готовился для накатывания с него диска с работами победителей Есть HTML-версия этого сайта (первая версия уже ушла в ALT для закатки на диск) Так что лучше качать ее Пока правда домен для этого ресурса не выделен. Хотя первоначально планировалось HTML-версию зеркалировать в ALT через Rsync, но не успели по срокам и первую версию передали архивом. > _______________________________________________ > community mailing list > community@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/community -- С Уважением Директор ООО НЕВОД Костарев А.Ф. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-11-25 10:36 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-11-25 9:39 ` [Comm] wget, кодировки и русские имена файлов Константин Михайленко 2008-11-25 9:41 ` Константин Михайленко 2008-11-25 10:05 ` Геннадий Ищенко 2008-11-25 10:20 ` Костарев Алексей 2008-11-25 10:25 ` Sergey Kudriavtsev 2008-11-25 10:36 ` Костарев Алексей
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git