使用C#连接器将中文插入TDengine 2.4.0.16但得到非法字节序列
使用TDengine.Query(conn, commandText);
它返回的intPrt
值不为0, TDengine.Error() 显示 非法字节序列
有人知道如何解决吗?
use TDengine.Query(conn, commandText);
It returned intPrt
value is not 0,
TDengine.Error() show Illegal byte sequence
anyone know how to resolve?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该发生在窗户下。这是因为在Windows中,C#使用UFT-16。这意味着参数
commandText
在UFT-16中。但是lib.taos accpet utf-8输入。您需要更改UTF-8中的'命令文本。This should happened under windows. This is because in Windows, C# using UFT-16. That means the parameter
commandText
is in UFT-16. However lib.taos accpet UTF-8 input. You need to change the `commandText in UTF-8.