Russian Apache Switch to English
Switch to Russian koi8-r
windows=1251
cp-866
iso8859-5
Russian Apache Как это работает Рекоммендации Где взять Как установить Как настроить Статус и поддержка
Краткий обзор FAQ Список рассылки Благодарности Поиск по серверу Powered by Russian Apache
Russian Apache mailing list archive (apache-rus@lists.lexa.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [apache-rus] FORCE_SOURCE_CHARSET



Hi!
>  alr>> Пользователь четко указал на то, что он utf-8 не поддерживает -- чего еще
>  alr>> он хочет ?
> AT> Ну не совсем так. '*' включает в себя utf-8.
> 

А вот кусок от RFC 2296:
===========================================================================
4.2.1 Collapsing Accept- header elements

   This section discusses how a long Accept- header which lists all
   capabilities and preferences can be safely made shorter.  The remote
   variant selection algorithm is designed in such a way that it is
   always safe to shorten an Accept or Accept-Charset header by two
   taking two header elements `A;q=f' and `B;q=g' and replacing them by
   a single element `P;q=m' where P is a wildcard pattern that matches
   both A and B, and m is the maximum of f and g.  Some examples are

      text/html;q=1.0, text/plain;q=0.8       -->    text/*;q=1.0
      image/*;q=0.8, application/*;q=0.7      -->    */*;q=0.8

      iso-8859-5;q=1.0, unicode-1-1;q=0.8     -->    *;q=1.0


   Note that every `;q=1.0' above is optional, and can be omitted:

      iso-8859-7;q=0.6, *                     -->    *

   For Accept-Language, it is safe to collapse all language ranges
   with the same primary tag into a wildcard:

      en-us;q=0.9, en-gb;q=0.7, en;q=0.8, da  -->    *;q=0.9, da

   It is also safe to collapse a language range into a wildcard, or to
   replace it by a wildcard, if its primary tag appears only once:

      *;q=0.9, da                             -->    *

   Finally, in the Accept-Features header, every feature expression
   can be collapsed into a wildcard, or replaced by a wildcard:

      colordepth!=5, *                        -->    *

4.2.2 Omitting Accept- headers


   According to the HTTP/1.1 specification [1], the complete absence of
   an Accept header from the request is equivalent to the presence of
   `Accept: */*'.  Thus, if the Accept header is collapsed to `Accept:
   */*', a user agent may omit it entirely.  An Accept-Charset, Accept-
   Language, or Accept-Features header which only contains `*' may also
   be omitted.
===========================================================================

Не все так плохо с RFC -))).
Но даже если я точно укажу "koi8-r, utf-8; q=0.1", что,  я смогу выбрать utf-8?
По моему надо рассматривать utf-8 по отношению к koi8-r, так же как iso-8859-1,
iso-8859-2 и т.д. А преобразование koi8-r <-> utf-8 как частный случай.
-- 

                      С наилучшими пожеланиями, Евгений Бырганов.
                      Best regards, Eugene Byrganov.

  mailto:E.B.Byrganov@inp.nsk.su
  work - http://www.inp.nsk.su/





Спонсоры сайта:

[ Russian Apache ] [ Как это работает ] [ Рекомендации ] [ Где взять ] [ Как установить ] [ Как настроить ] [ Статус и поддержка ] [ Краткий обзор ] [ FAQ ] [ Список рассылки ] [ Благодарности ] [ Поиск по серверу ] [ Powered by Russian Apache ] [ Apache-talk archive ]

"Russian Apache" includes software developed by the Apache Group for use in the Apache HTTP server project (http://www.apache.org/) See Apache LICENSE.
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C) 1997-2009 Alex Tutubalin. Design (C) 1998 Max Smolev.