Scenario:
"I blog in a non-English language and am having encoding issues. When I post a blog item, the non-English characters often get saved as their HTML entities or as strange symbols. What can I do to fix this?"
Original forum thread (thanks, MarioD_kr):
http://forum.nucleuscms.org/viewtopic.php?t=12345
Solution:
You need to change the variable _CHARSET in english.php (located in the language directory under the nucleus root) to UTF-8 vice iso-8859-1. You may also need to convert all of your database tables to UTF-8.
/nucleus/language/ directory inside your Nucleus installation and open the english.php file.// charset to use define('_CHARSET', 'iso-8859-1');
// charset to use define('_CHARSET', 'UTF-8');
head.inc. Open that file and paste the following line in there after the <head> tag near all the other <meta> tags:<meta http-equiv="content-type" content="text/html; charset=UTF-8">
If it is still not working, then you will need to convert your MySQL database to UTF-8.
ALTER DATABASE db_name CHARACTER SET utf8;
db_name is the name of your database.ALTER TABLE nucleus_item CONVERT TO CHARACTER SET utf8;
![]()
Total votes: 6 - Rating: 9.50