提交 f54bf45b 创建 作者: 王晓庆's avatar 王晓庆

6

上级 f67c5499
流水线 #118605 已通过 于阶段
用时 27 秒
...@@ -91,11 +91,11 @@ def my_msg_handler(msgstate, severity, srvname, procname, line, msgtext): ...@@ -91,11 +91,11 @@ def my_msg_handler(msgstate, severity, srvname, procname, line, msgtext):
the pieces of information sent by the server. the pieces of information sent by the server.
""" """
type = sys.getfilesystemencoding() # type = sys.getfilesystemencoding()
print(yellow("%s" % msgtext)) print(yellow("%s" % msgtext))
print(str(msgtext, encoding='utf-8')) print(str(msgtext, encoding='utf-8'))
print(yellow("%s" % msgtext.decode('utf-8'))) print(yellow("%s" % msgtext.decode('utf-8')))
print(yellow("%s" % msgtext.encode('utf-8'))) # print(yellow("%s" % msgtext.encode('utf-8')))
# 主函数 # 主函数
if __name__ == '__main__': if __name__ == '__main__':
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论