ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Константин Михайленко" <const.mkh@gmail.com>
To: "ALT Linux Community general discussions" <community@lists.altlinux.org>
Subject: Re: [Comm] wget, кодировки и русские имена файлов
Date: Tue, 25 Nov 2008 14:39:46 +0500
Message-ID: <a1878b00811250139l4b01473jbbe38617a5dc0ba3@mail.gmail.com> (raw)
In-Reply-To: <d77783290811250043i5879fce3jc44e0ae8f8fb6dbb@mail.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
>

       reply	other threads:[~2008-11-25  9:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-25  9:39 ` Константин Михайленко [this message]
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             ` Костарев Алексей

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a1878b00811250139l4b01473jbbe38617a5dc0ba3@mail.gmail.com \
    --to=const.mkh@gmail.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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