MySQL database charset settings (Upgrade 5.8 - 5.10)

Hello again
I’ve compared my database characters setting and default. You use latin1 encoding, but last upgrade I got an error from the MySQL (Maria DB had version 10.4.6)

Mysql2::Error: Incorrect string value: ‘\xD1\x83\xD0\xB4\xD0\xB0…’ for column opennebula . vm_pool . short_body at row 1

I solved it changing character set to utf8:

ALTER DATABASE databasename CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE opennebula.vm_pool CONVERT TO CHARACTER SET utf8;

I don’t remember exactly if I changed all tables or not.

Now I realized that your script compares equality “character settings” for the whole database and for the table “system_attributes”.
I’m not sure if converted to latin1 database will work.

May be it would better to use utf8mb4 for the opennebula database?