I use Mariaex
lib to connect to mysql in an elixir
project. But it does not handle local language correctly.
For example,
When it save local text Dương Phi Phụng
to mysql database, D??ng Phi Ph?ng
was save in the db.
The default charset for Mariaex
is utf8
, but even when I set charset: "utf8"
OR charset: "utf8mb4"
in the config, it still did not work.
Can anyone help?
Mariaex version: 0.8.4
(cannot update to lastest version due to legacy issue)
db charset: utf8mb4
db collation: utf8mb4_unicode_ci