由 jyh 在 01-12-2003 18:31 发表:
我的apache不能显示中文,标题正文都是乱码,附上部分config
我的apache不能显示中文,标题正文都是乱码,rh80默认工作站安装,高手帮忙.
附上部分config
......
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .et
AddLanguage fr .fr
AddLanguage de .de
AddLanguage he .he
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddLanguage pl .po
AddLanguage kr .kr
AddLanguage pt .pt
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pt-br .pt-br
AddLanguage ltz .ltz
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage tw .tw
AddLanguage zh-tw .tw
AddLanguage hr .hr
#AddLanguage gb .gb
LanguagePriority allows you to give precedence to some languages
in case of a tie during content negotiation.
Just list the languages in decreasing order of preference. We have
more or less alphabetized them here. You probably want to change this.
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ltz ca es sv tw
ForceLanguagePriority allows you to serve a result page rather than
MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
[in case no accepted languages matched the available variants]
ForceLanguagePriority Prefer Fallback
Specify a default charset for all pages sent out. This is
always a good idea and opens the door for future internationalisation
of your web site, should you ever want it. Specifying it as
a default does little harm; as the standard dictates that a page
is in iso-8859-1 (latin1) unless specified otherwise i.e. you
are merely stating the obvious. There are also some security
reasons in browsers, related to javascript and URL parsing
which encourage you to always set a default char set.
AddDefaultCharset ISO-8859-1
Commonly used filename extensions to character sets. You probably
want to avoid clashes with the language extensions, unless you
are good at carefully testing your setup after each change.
See ftp://ftp.isi.edu/in-notes/iana/ass.../character-sets for
the official list of charset names and their respective RFCs
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
#AddCharset GB2312 .gb2312 .gb
AddCharset Big5 .Big5 .big5
For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCha