[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] UTF-8 encoding fra apache




Skal man sætte en option i apache for, at den kan sende en charset=utf-8 ?



ja, se efter passende opsaetningsfiler til apache. evt. i .htaccess filen. Se f.eks. paa Addtype hvor du til hver type tilfoejer oensket charset.



<meta http-equiv="Content-Type" content="text/html; charset=utf-8">



Denne skal stemme overens med den Content-type header som apache sender.
MSIE og Opera bruger meta-linien selvom der findes Content-type:
Firefox, mozilla mfl. bruger (som standard foreskriver) Content-type
og kun hvis denne ikke findes ses efter meta/content linien i HTML dokumentet.


Jeg er igennem tiden blevet overrasket af ændringer af standarderne eller måske er det bare tilpasninger
til eksisterende standarder.


Jeg havde forsøgt, at indsætte "AddType text/html;charset=UTF-8 .html" i httpd.conf,
hvilket ikke gav noget. Så satte jeg "AddDefaultCharset UTF-8" i httpd.conf, og så virkede det.
Så er ændringen ganske vist global, hvilket ikke gør noget her, men burde det første ikke også virke ?



Poul




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:26 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *