admirez
V2EX  ›  Claude

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

  •  
  •   admirez · Dec 27, 2025 · 2937 views
    This topic created in 313 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
    ninjaJ
    Dec 27, 2025
    1
    大概率是 Windows 吧,如果是 Windows ,到 wsl 里用 Claude Code 。如果用的第三方 terminal 工具,需要设置编码。
    ETiV
    ETiV
    Dec 27, 2025 via iPhone❤️1
    2
    尽量避免在 Windows 里用,或者研究研究怎么套个沙盒。

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