python程序flask应用,docker部署, 数据库中有法语, 查询的时候报这上错,当然在window下面没问题, 在linux下才有这个问题,程序中用的sqlalchemy. 在linux环境下找到了odbcinst.ini文件, 但是这个文件里什么也没有,我也没有找到FreeTds的东西
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1131, in fetchall
l = self.process_rows(self._fetchall_impl())
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 1082, in _fetchall_impl
return self.cursor.fetchall()
ProgrammingError: (pyodbc.ProgrammingError) ('42000', u"[42000] [FreeTDS][SQL Server]Some character(s) could not be converted into client's character set. Unconverted bytes were changed to question marks ('?') (2403) (SQLGetData)") (Background on this error at: http://sqlalche.me/e/f405)
数据库中那个字段的法语值是这样的:
TÉLÉCOMMUNI
linux不熟, 请遇到过的大神们帮忙给看看,多谢啊