Page 1 of 1

How to force non-UTF8 encoding for the site?

Posted: Mon Oct 06, 2008 9:55 pm
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.

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

Posted: Mon Oct 06, 2008 9:57 pm
by Augustas
Add

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
in the of your pages.