jiangwen365 / pypyodbc

A pure Python Cross Platform ODBC interface module
MIT License
179 stars 74 forks source link

fix unixODBC SQLDescribeColW return odd content on linux #39

Closed changuoqiang closed 7 years ago

changuoqiang commented 7 years ago

unicode on linux/unixiODBC return things like this b'\xe5\x00\x9b\x00\xbe\x00\xe5\x00\xb9\x00\x85\x00\xe5\x00\x8f\x00\xb7\x00\x00\x00' it's really utf-8, but every byte padded with zero and terminated by '\x00\x00' it's a unixODBC's mistake.