Skip to content

Commit 7f67326

Browse files
committed
fix linux
1 parent 133921d commit 7f67326

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mssql_python/pybind/ddbc_bindings.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,8 @@ static py::object FetchLobColumnData(SQLHSTMT hStmt,
18181818
// Linux/macOS handling
18191819
size_t wcharCount = buffer.size() / sizeof(SQLWCHAR);
18201820
const SQLWCHAR* sqlwBuf = reinterpret_cast<const SQLWCHAR*>(buffer.data());
1821-
std::string utf8str = SQLWCHARToUTF8String(sqlwBuf, wcharCount);
1821+
std::wstring wstr = SQLWCHARToWString(sqlwBuf, wcharCount);
1822+
std::string utf8str = WideToUTF8(wstr);
18221823
return py::str(utf8str);
18231824
#endif
18241825
}

0 commit comments

Comments
 (0)