How to force non-UTF8 encoding for the site?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
zsero
Forum Members
Forum Members
Posts: 48
Joined: Mon Feb 13, 2006 4:39 pm

How to force non-UTF8 encoding for the site?

Post by zsero »

I use 1.2.5 and it always defaults to UTF8, when viewing the site.

Code: Select all

$config['default_encoding'] = 'windows-1250';
doesn't seem to make any difference
on the other hand,

Code: Select all

$config['admin_encoding'] = 'windows-1250';
works just like it should, automatically changing the encoding setting in firefox,  typing/viewing at national characters works OK.

I don't have any specific codetable specification in the CSS or HTML header, I think it's the http header which set's the browser always to UTF8.
User avatar
Augustas
Forum Members
Forum Members
Posts: 241
Joined: Wed Oct 17, 2007 6:09 pm

Re: How to force non-UTF8 encoding for the site?

Post by Augustas »

Add

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
in the of your pages.
http://FollowTheRoad.com/ - living on the road...
http://www.kligys.com/ - asmeninis blog'as...
Post Reply

Return to “CMSMS Core”