导出纯文本文件得到乱码

Author: zhyiyuCreated May 13, 2026Updated May 13, 2026

你好,我最近使用 WechatExporter 导出聊天记录,得到的文本文件大多数是乱码(少数可以正常读取)。以 test.txt 为例:

bash
abc/Desktop: file test.txt                                     
test.txt: data
abc/Desktop: file -I test.txt                                    
test.txt: application/octet-stream; charset=binary
abc/Desktop: hexdump -C test.txt                                    
00000000  e5 8d 97 e4 ba ac e6 b0  b4 e8 a5 bf e9 97 a8 e9  |................|
00000010  99 86 e5 ae b6 e9 b8 ad  e5 ad 90 20 2d 20 e5 be  |........... - ..|
00000020  ae e4 bf a1 e8 81 8a e5  a4 a9 e8 ae b0 e5 bd 95  |................|
00000030  0a 0a e5 8d 97 e4 ba ac  e6 b0 b4 e8 a5 bf e9 97  |................|

我的操作系统是 macOS 26.4.1, WechatExporter 的版本是 1.9.5.

Source: BlueMatthew/WechatExporter