windows的默认编码是GBK,得用utf-8执行,我是打成jar包的,可参考 chcp 65001 java -jar -Dfile.encoding=utf-8 ***.jar
Windows环境下会话内容存档-中文乱码我使用的是windows环境 SDK 开发工具是visual studio 2019,C#和C++都试过了。 调用DecryptData返回的字符串里的中文是乱码? DecryptData(encrypt_key, encrypt_chat_msg, chat_msg) encrypt_key = UxL83to3U2TME5/jjWSTIfcun7n6Gr+95PPehAl2dRwN6dlrw9nqwDKlrn0TqeG78+HjfS88S+tiR05TBWE8Gg== encrypt_chat_msg = +9fwe62SuR7bZ96UV8nnejc2qgBA4Zgo3/2T7x+xjTaAsWNiS6vLnm1mgR6MAR+fEsTM7JeJ4iZhbAlYIydU3sG4B61uczZX8WjtjnbE62q4VzJevyx2zGO5wUNvmxGMc9wJkg1xKR8x8NSrQ+x/QVPq1JOYqDDcA3BrLjq9ckzzbJQyjRAyqHNDwMAYMDVjXFPezzMOf/M6IGIPqxEMWNVAoMyGBPCxOjLoa4pYb/k1ysCRg2Mj881vpJWviWuwQ/Hej2VUX6CuZiBojR8T8cA2w4uhmZbFb5ureVAqUBNGaZFXwbgG2iJI/3d7jk1aNerrdzyy5/4JCqulcbyD0eVQA1YIinew/Q=vHG/MyKX 解密后的chat_msg {"msgid":"475076961693960299_1580613311","action":"send","from":"XXXX","tolist":["wmY8K6DgAAmdHH9CF4o"],"roomid":"","msgtime":1580613311367,"msgtype":"text","text":{"content":"娴嬭瘯"}} 请问有啥办法处理,编码转换好像不行,服务器端使用的是什么编码? 试用期没几天了,希望尽快完成poc
2022-07-04