Miscellaneous

How can I change the encoding of my blog?

Scenario:
"I want to change the encoding of my blog from <encoding A> to <encoding B>. How do I do this?"

Solution:
There is a setting in your language.php file (like english.php for English, hungarian.php for Hungarian etc) under nucleus/language folder and you have to make the change here. Look for the following code:

// charset to use
define('_CHARSET',					'*******');

where "*******" is your current charset. Replace "*******" with whichever charset you would like to use. For example, if I want to use iso-8859-1, I would have:

// charset to use
define('_CHARSET',					'iso-8859-1');

You should also check your skins to see that in the <head> section of your site, you are calling the correct encoding. So for example, make sure you have this in the <head> section of your skin:

<meta http-equiv="content-type" content="text/html; charset=*******" /> 

where "*******" is the charset you want to use.

Original forum thread (thanks, e-Musty!):
http://forum.nucleuscms.org/viewtopic.php?t=11703

section: Miscellaneous | submitted by Leng on 2006.May.06 | 2911 views

item rate
Total votes: 3 - Rating: 8.67

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10