0
設置爲
連接字符串如下:奇UTF-8的錯誤嘗試連接到MS SQL Server的
# -*- coding: utf-8 -*-
import pypyodbc
connection = pypyodbc.connect("DRIVER={SQL Server};SERVER='MyServer';UID='uname';PWD='pwd';DATABASE='mydb'")
收到以下錯誤:
UnicodeDecodeError: 'utf-32-le' codec can't decode bytes in position 0-1: truncated data