提交IbGateway对中文日志信息的支持

This commit is contained in:
chenxy123 2016-12-05 21:40:55 +08:00
parent 03e4f73139
commit cbdfeada50
2 changed files with 4 additions and 4 deletions

View File

@ -335,7 +335,7 @@ class IbWrapper(IbApi):
err = VtErrorData()
err.gatewayName = self.gatewayName
err.errorID = errorCode
err.errorMsg = errorString
err.errorMsg = errorString.decode('GBK')
self.gateway.onError(err)
#----------------------------------------------------------------------