没头脑QAQ 2017-08-18 06:15 采纳率: 66.7%
浏览 4582
已采纳

linux查看日志乱码,求解决方案

2017-08-17 16:01:17.840 [DubboServerHandler-10.104.97.56:20881-thread-9] INFO c.h.a.service.pay.webank.WeBankMerchantJoinDocking - ====>?????????????{"success":false,"message":"??ticket??","result":""}
2017-08-17 16:01:17.840 [DubboServerHandler-10.104.97.56:20881-thread-9] INFO c.h.a.service.pay.webank.WeBankMerchantJoinDocking - ##########????????????????????898088170716008448,???900
2017-08-17 16:01:17.842 [DubboServerHandler-10.104.97.56:20881-thread-9] INFO c.h.a.service.pay.webank.WeBankMerchantJoinDocking - ====>???????????????{"success":false,"message":"??ticket??","result":""}
2017-08-17 16:01:17.845 [DubboServerHandler-10.104.97.56:20881-thread-9] INFO c.h.a.service.pay.webank.WeBankMerchantJoinDocking - ====>????????????????
2017-08-17 16:01:17.845 [DubboServerHandler-10.104.97.56:20881-thread-9] INFO c.h.a.service.pay.webank.WeBankMerchantJoinDocking - ====>????????????????????
2017-08-17 16:01:17.845 [DubboServerHandler-10.104.97.56:20881-thread-9] INFO c.h.a.service.pay.webank.WeBankMerchantJoinDocking - ====>?????????????{"msg":{}}
2017-08-17 16:01:17.846 [DubboServerHandler-10.104.97.56:20881-thread-9] INFO c.h.a.service.pay.webank.WeBankMerchantJoinDocking - ====>????????????????????????898088170716008448,???906

首先,百度上的我都试了,都不行
vim修改服务器编码,把编码项改为 "zh_CN.UTF-8"这种没用

  • 写回答

3条回答 默认 最新

  • oyljerry 2017-08-18 06:58
    关注

    如果是中文等,需要你linux上有支持中文的字体等,这样设置后,然后写入文件的时候,也要用unicode编码等

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 已采纳回答 7月26日