summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Khramtsov <xramtsov@gmail.com>2018-09-07 22:50:16 +0300
committerGitHub <noreply@github.com>2018-09-07 22:50:16 +0300
commit9de2ca4568aa49cde42abc255fc941aed85d01d6 (patch)
treec21fcac1b88d2bfa17873257c7ff7e9ca218ab6c /src
parentBump lager version (diff)
parentfix for freetds UTF-8 corruption (diff)
Merge pull request #2597 from dmitryDemchenko/master
fix for freetds UTF-8 corruption
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_sql.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ejabberd_sql.erl b/src/ejabberd_sql.erl
index 970dece3..f126cd25 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"