ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Денис Смирнов" <mithraen@freesource.info>
To: community@altlinux.ru
Subject: [Comm] Re: Как заставить apache возвращать кодировку
Date: Fri, 3 Sep 2004 15:53:17 +0400
Message-ID: <20040903115317.GC18329@workstation> (raw)
In-Reply-To: <20040901124139.GS31156@osdn.org.ua>

On Wed, Sep 01, 2004 at 03:41:39PM +0300, Michael Shigorin wrote:

 MS> Можно (и вполне допустимо и даже рекомендовано -- старые
 MS> противопоказания уже _старые_) забивать в темплейт HTML, если
 MS> есть уверенность, что на всем контенте одинаковый чарсет.

Миша, с этим есть _сейчас_ серьёзная проблема. Некоторые браузеры при
сохранении документа перекодируют его в текущую системную кодировку, а
мета-тэги остаются прежними. Нехорошо это.

 MS> Можно генерировать нечто вида
 MS> Content-Type: text/html; charset=$charset
 MS> -- но при этом браузеру, смотрящему в сохраненную страничку,
 MS> придется заниматься угадавом или показывать бнопню.

_Правильный_ путь (истинно правильный) разбираться с каждым конкретным
браузером, чтобы он при сохранении вставлял meta-тэги с кодировкой. Я
понимаю что это более мучительный процесс, но всё-таки он верный.

Авторам страниц есть смысл пользоваться штатной фичей обычного апача --
указание дефолтной кодировки.

HTTP -- протокол, который поддерживает возможность указания кодировки
передаваемого по нему документа. Это -- Content-Type. При хранении на
диске существуют другие способы указания кодировки -- это мета-тэги. Или
хранение документа в utf-8, что, IMHO, и является Right Way (tm) в
настоящий момент.

А Russian Apache пока остаётся нужен из-за того, что браузеры (собаки
такие) могут отдать POST запрос чёрт знает в чём, и это придётся
кому-то перекодировать.

-- 
С уважением, Денис, котороый заколебался выковыривать meta-тэги из кривых
или перекодированых страниц.

http://freesource.info



  parent reply	other threads:[~2004-09-03 11:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-01 12:34 [Comm] " Anatoly A.Ivanov
2004-09-01 12:37 ` Ivan Fedorov
2004-09-01 12:41   ` [Comm] " Michael Shigorin
2004-09-01 12:53     ` Ivan Fedorov
2004-09-01 13:39       ` Michael Shigorin
2004-09-03 11:55         ` Денис Смирнов
2004-09-03 14:32           ` Michael Shigorin
2004-09-03 16:00             ` Денис Смирнов
2004-09-01 13:42       ` Alexey Morsov
2004-09-01 13:49       ` Michael Shigorin
2004-09-03 11:53     ` Денис Смирнов [this message]
2004-09-03 14:18       ` Michael Shigorin
2004-09-03 15:44         ` Denis Smirnov
2004-09-03 11:47   ` Денис Смирнов
2004-09-01 12:37 ` [Comm] " Leonid B. Sysoletin

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=20040903115317.GC18329@workstation \
    --to=mithraen@freesource.info \
    --cc=community@altlinux.ru \
    /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