admirez
V2EX  ›  Claude

claude code 调用命令行老是显示乱码怎么办

  •  
  •   admirez · Dec 27, 2025 · 2202 views
    This topic created in 159 days ago, the information mentioned may be changed or developed.
    比如:
    Bash(cmd /c "dir /b data\*600219*.csv")
    ⎿  Microsoft Windows [�汾 10.0.26100.4061]
    (c) Microsoft Corporation����������Ȩ����
    4 replies    2026-01-02 19:33:54 +08:00
    ninjaJ
        1
    ninjaJ  
       Dec 27, 2025
    大概率是 Windows 吧,如果是 Windows ,到 wsl 里用 Claude Code 。如果用的第三方 terminal 工具,需要设置编码。
    ETiV
        2
    ETiV  
       Dec 27, 2025 via iPhone   ❤️ 1
    尽量避免在 Windows 里用,或者研究研究怎么套个沙盒。

    LLM 貌似不会很好的处理 Windows bat 、pwsh 命令(主要是反斜杠),Antigravity 发生过清空用户硬盘的事故:
    https://old.reddit.com/r/google_antigravity/comments/1p82or6/google_antigravity_just_deleted_the_contents_of/
    admirez
        3
    admirez  
    OP
       Dec 27, 2025
    @ninjaJ 对的 window11 ,但是 wsl 没命令行方便吧? 我双击程序目录的批处理 就让 claude code 启用干活了
    hanssx
        4
    hanssx  
       Jan 2
    编码问题,估计你输入中文也没法正常中文问答吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   922 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 21:14 · PVG 05:14 · LAX 14:14 · JFK 17:14
    ♥ Do have faith in what you're doing.