TOWUK_ru can you describe what you mean by encoding?
If you mean the MySQL collation and engine, it's already set by Flarum when it creates the tables and not meant to be changed. It's not important which collation you choose when creating the database because that value is ignored by Flarum.