[Windows Bug] 输入任何内容都崩溃:'ascii' codec can't encode characters || [Windows Bug] Crash when entering any content: 'ascii' codec can't encode characters
What version of Kimi Code CLI is running?
kimi, version 1.3
Which open platform/subscription were you using?
/login
Which model were you using?
kimi-for-coding (powered by kimi-k2.5)
What platform is your computer?
Microsoft Windows NT 10.0.22631.0
What issue are you seeing?
Unexpected error: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
输入任何内容(包括简单的 "hello")后 CLI 立即崩溃。
What steps can reproduce the bug?
- 在 Windows 上安装 Kimi CLI:
Invoke-RestMethod https://code.kimi.com/install.ps1 | Invoke-Expression - 在终端运行
kimi - CLI 显示欢迎界面和提示符
25362@test💫 - 输入任意内容,例如
hello - 按回车
- CLI 崩溃,显示 ascii 编码错误
Session ID: 69f9f260-4656-456f-bcea-11cf7a09f911(来自欢迎界面)
What is the expected behavior?
CLI 应该正常接受用户输入并开始对话,不应该崩溃。
Additional information
- 已尝试设置 PYTHONIOENCODING=utf-8 和 PYTHONUTF8=1,无效
- 已尝试 chcp 65001,无效
- 错误可能与提示符中的 emoji (💫) 在写入历史记录文件时的编码问题有关
- 无法执行任何命令,包括 /version、/help,因为输入后立即崩溃
- 在 Windows 11 中文系统上全新安装
- 使用 PowerShell 和 Windsurf 终端都测试过,同样报错
What version of Kimi Code CLI is running?
kimi, version 1.3
Which open platform/subscription were you using?
/login
Which model were you using?
kimi-for-coding (powered by kimi-k2.5)
What platform is your computer?
Microsoft Windows NT 10.0.22631.0
What issue are you seeing?
Unexpected error: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
The CLI crashes immediately after typing anything, including a simple "hello".
What steps can reproduce the bug?
- Install Kimi CLI on Windows:
Invoke-RestMethod https://code.kimi.com/install.ps1 | Invoke-Expression - Run
kimiin the terminal - CLI displays the welcome interface and prompt
25362@test💫 - Enter any content, such as
hello - Press Enter
- CLI crashes with ascii encoding error
Session ID: 69f9f260-4656-456f-bcea-11cf7a09f911 (from the welcome interface)
What is the expected behavior?
The CLI should accept user input and start a dialog normally, and should not crash.
Additional information
- Tried setting PYTHONIOENCODING=utf-8 and PYTHONUTF8=1, to no avail
- Tried chcp 65001, to no avail
- The bug may be related to an encoding issue with the emoji (💫) in the prompt when writing to the history file
- Unable to execute any commands, including /version, /help, because they crash immediately after typing them
- Fresh installation on Windows 11 Chinese system
- Tested using both PowerShell and Windsurf terminals, same error reported
一样 win11 powershell
试了 chcp 65001 / PYTHONUTF8=1 并且Remove-Item "$env:USERPROFILE.kimi\history.jsonl" -Force -ErrorAction SilentlyContinue 依旧无效
大佬解决了吗,官方出的CLI压根用不起来。 我真服了, 还专门开了个会员 压根不能用
Did you guys solve it? The official CLI cannot be used at all. I'm so convinced that I even opened a special membership and it can't be used at all
大佬解决了吗,官方出的CLI压根用不起来。 我真服了, 还专门开了个会员 压根不能用
Did you guys solve it? The official CLI cannot be used at all. I'm so convinced that I even opened a special membership and it can't be used at all
windows编码确实存在问题,等待team修复吧1
我也是有相同的状况,我一开始是在vscode里安装,调取日志时发现日志里只有安装和登录日志,对话调取没有任何记录,今天更新插件看到的是前端对话有进度,文字输入时日志输出有部分内容但是依旧存在问题,CLI里是显示编码的问题但是我强制Windows的terminal使用UTF-8编码还是不行,和你的一样弹出ASCII编码不支持,喜欢快点优化吧
I also have the same situation. I installed it in vscode at the beginning. When I retrieved the log, I found that there were only installation and login logs in the log, and there was no record of the conversation. When I updated the plug-in today, I saw that the front-end conversation was progressing. There was still some content in the log output when text input, but there was still a problem. There was an encoding problem in the CLI, but I forced the Windows terminal to use UTF-8 encoding and it still didn't work. Just like yours, the ASCII encoding was not supported. I like to optimize it quickly
大佬解决了吗,官方出的CLI压根用不起来。 我真服了, 还专门开了个会员 压根不能用
Did you guys solve it? The official CLI cannot be used at all. I'm so convinced that I even opened a special membership and it can't be used at all
开了会员后可以在控制台里使用API在其他的IDE里使用,目前在vscode里使用cline或者Roo code是正常的,就是kimi cli有问题
大佬解决了吗,官方出的CLI压根用不起来。 我真服了, 还专门开了个会员 压根不能用 Did you guys solve it? The official CLI cannot be used at all. I'm so convinced that I even opened a special membership and it can't be used at all
开了会员后可以在控制台里使用API在其他的IDE里使用,目前在vscode里使用cline或者Roo code是正常的,就是kimi cli有问题
嗯嗯, 感谢大佬, 我这边在 opencode 中使用是正常的
我这也一样,即使强制$env:PYTHONIOENCODING = "utf-8"也不行,感觉这cli跟个半成品一样
It's the same for me. Even if I force $env:PYTHONIOENCODING = "utf-8", it won't work. I feel like this cli is like a semi-finished product