Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

codepage automatic selection problem

Status
Not open for further replies.

MrSteel

Programmer
Mar 24, 2006
3
YU
Hi
I have problem with codepage automatic setting through html on Apache server

this is two completly same HTML files
and

and they are showing first wrong and other good even they are same
I suppose there is some setting on Apache to succesfully send codepage and speciall letters in htpdocs.conf or some other config file

thanks in advance
 
Hi

For the first ( [navy][ignore][/ignore][/navy] ) the web server sends [highlight][tt]Content-type: text/html[/tt][/highlight] header line and for the second ( [navy][ignore][/ignore][/navy] ) sends [highlight][tt]Content-Type: text/html; charset=ISO-8859-1[/tt][/highlight].

So there is somewhere a default character set setting. Search httpd.conf and .htaccess(es) for [tt]AddDefaultCharset[/tt] directive.

Feherke.
 
Hi

If I was not too clear : if you find an [tt]AddDefaultCharset[/tt], comment it out or delete it. This way the [tt]charset=utf-8[/tt] from the documents [tt]meta[/tt] tag will be honored.

Feherke.
 
when I view source they are same, and I have copied same files

on the other side there is no .htaccess file on my /var/www/

in htpdconf there is no AddDefaultCharset

and last one pages need utf-8 to display correct character
and ib.ns.ac.yu is displayed correctly when I set utf manually but is displaying correctly automaticly

strange but I will try to add default chartype
that might help even it is wrong
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top