Then came the day when I wanted to add the first content containing emojis and ended up with an error message like this:
Code: Select all
DEBUG: SQL = INSERT INTO cms_module_news (news_id, news_category_id, news_title, news_data, summary, status, news_date, start_time, end_time, create_date, modified_date,author_id,news_extra,news_url,searchable) VALUES (19,'1','test2','
😀
','','published','2025-05-10 20:11:36',NULL,NULL,'2025-05-10 20:11:46','2025-05-10 20:11:46',1,'','',1)
Incorrect string value: '\xF0\x9F\x98\x80
I realised that when creating the database, I did not pay attention to character encoding - which means that the database and all tables in MariaDB were created in 'latin1' (the server config has been in use for years). I assume that that is the core cause behind this issue.
I have since searched and experimented a lot - among other things, I found this post in this forum, describing a similar problem. I have by now switched the database to 'utf8mb4' and converted a few tables (the ones showing up in the error messages) - but unfortunately, that does not seem to make any difference so far. I know that this is very likely not a CMSMS-issue as such, but maybe somebody out there has a brainwave that helps me getting this solved without having to re-build the whole site from scratch again... Thank you kindly in advance!