Просмотр полной версии : Настройка RealUrl на отображение символов типа: ÆØÅæøå
Возможно настроить RealUrl таким образом, чтобы в адресной строке отображались символы типа ÆØÅæøå.
Pavel Antonov
13.10.2008, 21:18
Возможно настроить RealUrl таким образом, чтобы в адресной строке отображались символы типа ÆØÅæøå.
Читаем внимательно: http://labs.apache.org/webarch/uri/rfc/rfc3986.html
2. (http://labs.apache.org/webarch/uri/rfc/rfc3986.html#rfc.section.2) Characters
The URI syntax provides a method of encoding data, presumably for the sake of identifying a resource, as a sequence of characters. The URI characters are, in turn, frequently encoded as octets for transport or presentation. This specification does not mandate any particular character encoding for mapping between URI characters and the octets used to store or transmit those characters. When a URI appears in a protocol element, the character encoding is defined by that protocol; without such a definition, a URI is assumed to be in the same character encoding as the surrounding text.
The ABNF notation defines its terminal values to be non-negative integers (codepoints) based on the US-ASCII coded character set [ASCII] (http://labs.apache.org/webarch/uri/rfc/rfc3986.html#ASCII). Because a URI is a sequence of characters, we must invert that relation in order to understand the URI syntax. Therefore, the integer values used by the ABNF must be mapped back to their corresponding characters via US-ASCII in order to complete the syntax rules.
A URI is composed from a limited set of characters consisting of digits, letters, and a few graphic symbols. A reserved subset of those characters may be used to delimit syntax components within a URI while the remaining characters, including both the unreserved set and those reserved characters not acting as delimiters, define each component's identifying data.
Хм, а тогда каким образом это реализовано например здесь: http://da.wikipedia.org/wiki/Speciel:Seneste_ændringer
Хм, а тогда каким образом это реализовано например здесь: http://da.wikipedia.org/wiki/Speciel:Seneste_ændringer
Просто IE показывает это в адресной строке, в исходном виде, но HTTP запрос все равно отправляется кодированный, можете посмотреть снифером – GET /wiki/Speciel:Seneste_%C3%A6ndringer HTTP/1.1
В FF же и в адресной строке происходит перекодирование.
Просто IE показывает это в адресной строке, в исходном виде, но HTTP запрос все равно отправляется кодированный, можете посмотреть снифером – GET /wiki/Speciel:Seneste_%C3%A6ndringer HTTP/1.1
В FF же и в адресной строке происходит перекодирование.
Да, это понятно. Вопрос как раз в том и состоит, возможно ли настроить РЕАЛУРЛ для подобной же работы. Т.е. работа всех внутренних линков, ссылок меню и т.д. с поддержкой "нестандартных" символов.
Работает на vBulletin® версия 3.8.1. Copyright ©2000-2025, Jelsoft Enterprises Ltd. Перевод: zCarot