From b2c6e397fc26ce9dd8372e6a32e1a07bf413875d Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Tue, 26 Jan 2016 13:47:24 +0100 Subject: [PATCH] Set set utf8mb4 charset on mysql connection --- src/ejabberd_odbc.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberd_odbc.erl b/src/ejabberd_odbc.erl index d7b8fa83a..a15c66b5d 100644 --- a/src/ejabberd_odbc.erl +++ b/src/ejabberd_odbc.erl @@ -618,7 +618,7 @@ mysql_connect(Server, Port, DB, Username, Password) -> of {ok, Ref} -> p1_mysql_conn:fetch( - Ref, [<<"set names 'utf8';">>], self()), + Ref, [<<"set names 'utf8mb4' collate 'utf8mb4_bin';">>], self()), {ok, Ref}; Err -> Err end.