I got this to work with Database encoding: utf-8 and Database setup command: SET NAMES 'utf8mb4':
Database encoding is "utf-8" with the hyphen as it's the parameter send to PHP's iconv(), not the MySQL/MariaDB character encoding name. The database character encoding is specified with SET NAMES.