Chinese characters cannot be displayed。

Metabase version: v0.44.4
MySQL version:5.7
my.cnf set up:

[mysqld]
datadir=/var/lib/mysql
default-storage-engine=INNODB
character_set_server=utf8
lower_case_table_names=1
table_open_cache=128
max_connections=2000
max_connect_errors=6000
innodb_file_per_table=1
innodb_buffer_pool_size=1G
max_allowed_packet=64M
transaction_isolation=READ-COMMITTED
innodb_flush_method=O_DIRECT
innodb_lock_wait_timeout=1800
innodb_flush_log_at_trx_commit=0
sync_binlog=0
group_concat_max_len=1024000
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
skip-name-resolve
[mysql]
default-character-set=utf8
[mysql.server]
default-character-set=utf8

Please help me!
Thanks!
Juake

Hi @juake
I would recommend that you read through this: Incorrect string value error (Polish characters)
You need to convert everything from utf8 to utf8mb4

I'll do this. thinks!

I have change utf8 to utf8mb4,but it's no ok.

Did I set it wrong?


and reboot everything yet.

@juake Changing data is a massive task. You need to very carefully read the entire topic, specifically this Incorrect string value error (Polish characters) - #4 by flamber

There's no easy way of doing things, since you have stored your data with incorrect charset to begin with.

I deleted the original and built a new library.

@juake I have no idea what that means, but you need to make sure that all databases, tables and columns are using utf8mb4 - and that your data is actually UTF8.

Post "Diagnostic Info" from Metabase Admin > Troubleshooting.

@flamber,oh,i'm sorry. i'm chinese and en is no good.
I can't better describe my problems, my problems。

is this codes?

{
  "browser-info": {
    "language": "zh-CN",
    "platform": "Win32",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36",
    "vendor": "Google Inc."
  },
  "system-info": {
    "file.encoding": "UTF-8",
    "java.runtime.name": "OpenJDK Runtime Environment",
    "java.runtime.version": "11.0.16.1+1",
    "java.vendor": "Eclipse Adoptium",
    "java.vendor.url": "https://adoptium.net/",
    "java.version": "11.0.16.1",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.16.1+1",
    "os.name": "Linux",
    "os.version": "4.4.59+",
    "user.language": "en",
    "user.timezone": "GMT"
  },
  "metabase-info": {
    "databases": [
      "h2",
      "mysql"
    ],
    "hosting-env": "unknown",
    "application-database": "h2",
    "application-database-details": {
      "database": {
        "name": "H2",
        "version": "1.4.197 (2018-03-18)"
      },
      "jdbc-driver": {
        "name": "H2 JDBC Driver",
        "version": "1.4.197 (2018-03-18)"
      }
    },
    "run-mode": "prod",
    "version": {
      "date": "2022-09-29",
      "tag": "v0.44.4",
      "branch": "release-x.44.x",
      "hash": "382d728"
    },
    "settings": {
      "report-timezone": null
    }
  }
}
sessionVariables=character_set_server=utf8mb4

Has been added.
or should change "file.encoding": "UTF-8"?
i have no idea how to do it.

@juake Ask a friend for help to created through the topic I've linked to twice already. There's no simple solution. I cannot help you further.