Hi all.
I’m having trouble displaying umlauts and special characts (such as °) in icingaweb2.
I encounter this problem time and time again.
I already found out that Ubuntu 20.04+mariadb will use utf8mb4 as default when creating a database.
So I dropped both icinga2 and icingaweb2 databases, as it it as fresh setup with nearly nothing in it.
Then I recreated the databases with the following commands:
create database icinga2 CHARACTER SET latin1 COLLATE latin1_swedish_ci;
create database icingaweb2 CHARACTER SET latin1 COLLATE latin1_swedish_ci;
Both databases now have latin1
as default character set:
SELECT default_character_set_name FROM information_schema.SCHEMATA WHERE schema_name = "icinga2";
+----------------------------+
| default_character_set_name |
+----------------------------+
| latin1 |
+----------------------------+
1 row in set (0.000 sec)
SELECT default_character_set_name FROM information_schema.SCHEMATA WHERE schema_name = "icingaweb2";
+----------------------------+
| default_character_set_name |
+----------------------------+
| latin1 |
+----------------------------+
1 row in set (0.000 sec)
Even so I have done that and set the charset option of the resources to latin1
, I still get BS in the webinterface
(upper comment is °, lower is an umlaut)
In the database all is displayed correctly:
Anyone got any idea where to look next?