From: root Date: Fri, 7 Sep 2018 16:56:39 +0000 (+0300) Subject: fix for freetds UTF-8 corruption X-Git-Tag: 18.09~43^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b545301f635cf682004f30f50a80fbf055eae0aa;p=ejabberd fix for freetds UTF-8 corruption --- diff --git a/src/ejabberd_sql.erl b/src/ejabberd_sql.erl index 970dece3f..f126cd259 100644 --- a/src/ejabberd_sql.erl +++ b/src/ejabberd_sql.erl @@ -1034,6 +1034,7 @@ init_mssql(Host) -> FreeTDS = io_lib:fwrite("[~s]~n" "\thost = ~s~n" "\tport = ~p~n" + "\tclient charset = UTF-8~n" "\ttds version = 7.1~n", [Host, Server, Port]), ODBCINST = io_lib:fwrite("[freetds]~n"