Closed becage closed 3 months ago
taos存储的数据就是乱码的,但是看配置默认是utf8, MQTTX软件的问题吗,哪里可以设置
原始bao wen报文,订阅发出去也没乱码,就是存入tdegine时乱码
-Dfile.encoding=utf-8 指定下java运行时字符集试下
-Dfile.encoding=utf-8 指定下java运行时字符集试下 我对jetlinks后端代码做了修改后,在Dockerfile增加了字符集,重新打镜像,然后docker-compose up 运行还是乱码 ENTRYPOINT ["java", "-Dfile.encoding=utf-8", "-jar", "jetlinks.jar"] 修改docker-compose.yml volumes:
- "./data/jetlinks:/application/static/upload" # 持久化上传的文件
- "./data/jetlinks/:/application/data/files"
- "./data/jetlinks/:/application/data/protocols"
- "./entrypoint.sh:/entrypoint.sh" environment:
- "JAVA_OPTS=-Duser.language=zh -XX:+UseG1GC -Dfile.encoding=utf-8"
- "JAVA_OPTS=-Duser.language=zh -XX:+UseG1GC"
tdengine:
image: tdengine/tdengine:3.0.1.8
原来是latest镜像,换成低版本不乱码了,是tdengin版本的问题
使用
TDEngine-列式存储
tdengine: image: tdengine/tdengine
redis: image: redis
mysql: image: mysql:5.7.18
elasticsearch: image: elasticsearch:7.17.21
ui: image: registry.cn-shenzhen.aliyuncs.com/jetlinks/jetlinks-ui-vue:2.1.0-SNAPSHOT