CppOrJava's recent timeline updates
CppOrJava

CppOrJava

V2EX member #40506, joined on 2013-06-12 15:42:12 +08:00
CppOrJava's recent replies
@VoldikSS 是没有办法吗
@lihongjie0209 Linux 和 Windows 下 git bash 是正常的
其实感觉跟 antiword 关系更大一些, cmd 下 chcp 65001 后 antiword 的输出仍然会有乱码
但在 git bash 下调用 antiword, 就不会输出乱码
@lihongjie0209 我试过改 locale,没有用
代码:

locale.setlocale(locale.LC_ALL, 'zh_CN.UTF-8')
locale.setlocale(locale.LC_COLLATE,'zh_CN.UTF-8')
locale.setlocale(locale.LC_CTYPE,'zh_CN.UTF-8')
locale.setlocale(locale.LC_NUMERIC,'zh_CN.UTF-8')
locale.setlocale(locale.LC_MONETARY,'zh_CN.UTF-8')
locale.setlocale(locale.LC_TIME,'zh_CN.UTF-8')
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   847 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 21:22 · PVG 05:22 · LAX 14:22 · JFK 17:22
♥ Do have faith in what you're doing.