pls nevite nekdo jak nastavit-donutit Apache aby zobrazoval i šěščřžýáíé ?
<HTML>spis to bude nastavenim v php.ini</HTML>
mam nainstalovany i Apache_1.3.20 a tady mi to diakritiku zobrazuje.
<HTML>tak se podivej do httpd.conf a nastaveni cahrsetu</HTML>
....
# 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 http://www.iana.org/assignments/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 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
AddCharset UTF-8 .utf8
# The set below does not map to a specific (iso) standard
# but works on a fairly wide range of browsers. Note that
# capitalization actually matters (it should not, but it
# does for some browsers).
#
# See http://www.iana.org/assignments/character-sets
# for a list of sorts. But browsers support few.
#
AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis
#
.....
napadlo me ze to bude AddDefaultCharset ISO-8859-1
-> nastavil jsem na WINDOWS-1251 - nepomohlo.
-> zakomentoval vse krom WINDOWS-1251 - nepomohlo
?
1) AddDefaultCharset off v php.ini
2) zkontrolovat php.ini (default_charset)
a ještě jedna drobnost: addcharset nezakomentovávej
Majkls:
soucasne pouzivam se stejnym php.ini i starsi verzi Apache a ta mi funguje cz ok.
1) >>AddDefaultCharset off v php.ini to tam vubec nemam?
2) >>default_charset mam takto: ;default_charset = "iso-8859-1"
a muj prohlizec furt nic a rika - unicode UTF8 :(
Bud iso-8859-2 nebo windows-1250
Uz sem myslel, ze to nikoho nenapadne, jak sem to postupne procital :-) Ja nevim, kde ste vsichni vzali takovy divny formaty kodovani (co se pro cestinu tyce)? Naprosto souhlasim se Sojkovcem.
<HTML>autor: divne.. kontroloval jsi hlavicku? to by nam hledani zavady dost usnadnilo....
btw: neukladas to nahodou jako utf8 v editoru?</HTML>
master je to fakt divne. to UTF8 je tam jeste nez otevru jakoukoli stranku - pouze localhost.
spustim Apache1 otevru prohlizec (localhost) kodovani stredoevropske.
spustim Apache2 kodovani UTF8 :(((
zmeny v php.ini default_charset = "windows-1250" -->> NEPOMAHA
no asi mi nezbude nez pouzivat Apache1 :-((
1) AddDefaultCharset je v *httpd.conf*
2) jaký hlásky ti tam chyběj ?
Tak si nekde stahni Apche 1.3.23 nekde tady bzl odkaz tusim ze v -------PHP na PC -------- , tam mi to faka v poho
AddDefaultCharset ISO-8859-1
- buď zakomentovat nebo nastavit Win-1250 (nebo ISO)
Pochlub se s konfigurákem apache a hlavičkou html souboru, ať víme, na čem jsme. je ti doufám jasný, že musíš apache restartovat, když chceš aby se aplikovalo nový nastavení...