freebcp: “Unicode data is odd byte size for column. Should be even byte size”
问题 This file works fine (UTF-8): $ cat ok.txt 291054 Ţawī Rifā This file causes an error (UTF-8): $ cat bad.txt 291054 Ţawī Rifā‘ Here's the message: $ freebcp 'DB.dbo.table' in bad.txt ... -c Starting copy... Msg 20050, Level 4 Attempt to convert data stopped by syntax error in source field Msg 4895, Level 16, State 2 Server '...', Line 1 Unicode data is odd byte size for column 2. Should be even byte size. Msg 20018, Level 16 General SQL Server error: Check messages from the SQL Server The