SOLVED How to change Server Charset in phpmyadmin

Operating System & Version
CloudLinux 7.9
cPanel & WHM Version
92.0.0

cpfan

Registered
Nov 9, 2020
3
0
1
Iran
cPanel Access Level
Root Administrator
I tried them before by adding these two lines in my.cnf file, but it doesn't work. Here is my.cnf contents:
Code:
[client]
character_set_server='uft8'
character_set_database='utf8'
I also tried this:
Code:
[client]
character_set_server=uft8
character_set_database=utf8
When I restart mysql service and check it again, it's still latin1. But when I manually change these two variables in phpmyadmin GUI, it works (I know it's temporary and works until mysql restarts).

When I add these two lines within [mysqld] part in my.cnf, mysql service cannot restart and it returns error, so I should remove or comment them.