   Apache + Mozilla charset issue
  I don''t really know which forum this problem fits best in: anyway, I''m having trouble properly displaying non-English (Scandinavian) characters, which the browser (?) happily substitutes with jibberish.I haven''t touched the charset definitions in httpd.conf and the html file itself doesn''t change in appearance regardless of whether  I supply a charset definion in the header or not. Evidently, IE has no trouble displaying these characters properly so I''m guessing it''s a Mozilla''s personal tragedy.Any clues as to why this is so?   "Finishing in second place, simply means you are the first loser." - PouyaCat
  The whole idea of identifying the character set inside an HTML/XML file is flawed. The browser is forced to either go with what HTTP told it to use, guess, only use what the user setup the browser to use, or guess and then parse until an encoding is specified and then reparse the document. I''m not sure exactly what method Mozilla uses to go about it and I''m not sure if there''s a standard forcing a certain method to be used. I do know that Mozilla will honor the encoding the user or HTTP (in that order) tells it to use. So, I''d advise you to just setup the HTTP server to just not assume anything about the encoding.Apache lets you specify some moderately robust settings to allow it to determine what character set is being used. I''ve only had to use a AddDefaultCharset so far, so I''ll just refer the documentation for more information on that.   ;  Well, thanks for the clickens, although it doesn''t help much since m as I realise, default settings should work just fine . Anyway - here''s an update to the problem: for a while Apache seemed to display characters correctly on one of my php pages (just one), but that might have been chached... Anyway - after tinkering with settings a little, nothing has changed - every ä, ö, õ and ü, either directly, or through php, is jibberish... Here''s my httpd.conf (with irrelevant parts omitted): AddLanguage da .dkAddLanguage nl .nlAddLanguage en .enAddLanguage et .etAddLanguage fr .frAddLanguage de .deAddLanguage he .heAddLanguage el .elAddLanguage it .itAddLanguage ja .jaAddLanguage pl .poAddLanguage kr .krAddLanguage pt .ptAddLanguage nn .nnAddLanguage no .noAddLanguage pt-br .pt-brAddLanguage ltz .ltzAddLanguage ca .caAddLanguage es .esAddLanguage sv .seAddLanguage cz .czAddLanguage ru .ruAddLanguage tw .twAddLanguage zh-tw .twAddLanguage hr .hr## 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/assignments/character-sets for# the official list of charset names and their respective RFCs#AddCharset ISO-8859-1  .iso8859-1  .latin1AddCharset ISO-8859-2  .iso8859-2  .latin2 .cenAddCharset ISO-8859-3  .iso8859-3  .latin3AddCharset ISO-8859-4  .iso8859-4  .latin4AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ruAddCharset ISO-8859-6  .iso8859-6  .latin6 .arbAddCharset ISO-8859-7  .iso8859-7  .latin7 .grkAddCharset ISO-8859-8  .iso8859-8  .latin8 .hebAddCharset ISO-8859-9  .iso8859-9  .latin9 .trkAddCharset ISO-2022-JP .iso2022-jp .jisAddCharset ISO-2022-KR .iso2022-kr .kisAddCharset ISO-2022-CN .iso2022-cn .cisAddCharset Big5   .Big5  .big5# For russian, more than one charset is used (depends on client, mostly):AddCharset WINDOWS-1251 .cp-1251   .win-1251AddCharset CP866  .cp866AddCharset KOI8-r .koi8-r .koi8-ruAddCharset KOI8-ru.koi8-uk .uaAddCharset ISO-10646-UCS-2 .ucs2AddCharset ISO-10646-UCS-4 .ucs4AddCharset 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 ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets# for a list of sorts. But browsers support few.#AddCharset GB2312 .gb2312 .gbAddCharset utf-7  .utf7AddCharset utf-8  .utf8AddCharset big5   .big5 .b5AddCharset EUC-TW .euc-twAddCharset EUC-JP .euc-jpAddCharset EUC-KR .euc-krAddCharset shift_jis   .sjis "Finishing in second place, simply means you are the first loser." - PouyaCat