]> granicus.if.org Git - ejabberd/commitdiff
fix for freetds UTF-8 corruption
authorroot <d.demchenko@metalcourier.com>
Fri, 7 Sep 2018 16:56:39 +0000 (19:56 +0300)
committerroot <d.demchenko@metalcourier.com>
Fri, 7 Sep 2018 16:56:39 +0000 (19:56 +0300)
src/ejabberd_sql.erl

index 970dece3fac07dc10ecae0fe128164d25a8516b7..f126cd259c8e2b360e71d7a4595acda85fdb547e 100644 (file)
@@ -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"