26
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-28 17:38:54 +01:00

Merge pull request #2597 from dmitryDemchenko/master

fix for freetds UTF-8 corruption
This commit is contained in:
Evgeny Khramtsov 2018-09-07 22:50:16 +03:00 committed by GitHub
commit 9de2ca4568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1034,6 +1034,7 @@ init_mssql(Host) ->
FreeTDS = io_lib:fwrite("[~s]~n" FreeTDS = io_lib:fwrite("[~s]~n"
"\thost = ~s~n" "\thost = ~s~n"
"\tport = ~p~n" "\tport = ~p~n"
"\tclient charset = UTF-8~n"
"\ttds version = 7.1~n", "\ttds version = 7.1~n",
[Host, Server, Port]), [Host, Server, Port]),
ODBCINST = io_lib:fwrite("[freetds]~n" ODBCINST = io_lib:fwrite("[freetds]~n"