Registered: Oct 2004
Location: Stockholm Sweden
Distribution: Fedora 1-8,Familiar v0,7.2, Redhat 9.0, Knoppix, CentOS, Windows 2003,2000,XP,98,95, Exc
Apache 2.0 httpd.conf - AddDefaultCharset
I have a problem with the AddDefaultCharset setting in httpd.conf. I have many .txt files that I have indexed.
Some of these files are in UTF-8 Unicode text format and some are ISO-8859-1 text.
I have written most of these files in Swedish, and now these files won't show the swedish characters correctly, it all seems to depend on the AddDefaultCharset setting. I know ISO-8850-1 is default with AddDefaultCharset on, but depending on which setting I choose when setting
ISO-8859 or UTF-8 here the different file show up correctly. But I can't get both types of files to show themselves correctly at the same time....this is the problem.
-Things I've tried that havn't worked,
/double AddDefaultCharset line with both settings. (UTF-8 dominates)
/AddDefaultCharset off (I no its a security risk)
/AddDefaultCharset ISO-8859-1 UTF-8 (apache fails to start with this setting because only one file type is alowed per row.)
I could change all file to the same file type...but I'd need help creating a script to do this if it's att all possible. But when I've had this site at a ISP I didn't have this problem, and I think that they used Apache......
Any help with this issue would be much appreciated.
Last edited by nordickiwi; 10-04-2004 at 05:04 AM.