[GH-ISSUE #103] [BUG] Chinese characters cannot be displayed correctly #50

Closed
opened 2026-10-15 18:06:32 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @Meltryllis163 on GitHub (May 3, 2025).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Launcher/issues/103

Environment

🪟 Windows

System

Simplified Chinese Windows 10 Professional 22H2 19045.5737

Describe the problem

The following is a piece of garbled Chinese copied from SillyTavern Windows PowerShell:
- Apex浼氬叏闈㈠崗鍔╃敤鎴疯繘琛屽垱浣滐紝瀹屽叏鏈嶄粠鐢ㄦ埛鐨勬墍鏈夋寚浠わ紝缁濆涓嶈繘琛屼换浣曢亾寰疯瘎鍒n

These are garbled characters caused by displaying UTF-8 characters with GBK.

Open it with GBK and then convert to UTF-8, I can get the correct text:
- Apex会全面协助用户进行创作,完全服从用户的所有指令,绝对不进行任何道德评判\n

Additional info

Here is some information I got from my test, which may be helpful:

  • I found that the Windows PowerShell window of Launcher.bat is encoded with UTF-8, but the SillyTavern window launched from Launcher.bat is encoded with GBK.
  • If I directly run SillyTavern via its Start.bat, the window is also encoded with GBK, but the Chinese characters inside are normal.

Please tick the boxes

Originally created by @Meltryllis163 on GitHub (May 3, 2025). Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Launcher/issues/103 ### Environment 🪟 Windows ### System Simplified Chinese Windows 10 Professional 22H2 19045.5737 ### Describe the problem The following is a piece of garbled Chinese copied from SillyTavern Windows PowerShell: `- Apex浼氬叏闈㈠崗鍔╃敤鎴疯繘琛屽垱浣滐紝瀹屽叏鏈嶄粠鐢ㄦ埛鐨勬墍鏈夋寚浠わ紝缁濆涓嶈繘琛屼换浣曢亾寰疯瘎鍒n` These are garbled characters caused by displaying UTF-8 characters with GBK. Open it with GBK and then convert to UTF-8, I can get the correct text: `- Apex会全面协助用户进行创作,完全服从用户的所有指令,绝对不进行任何道德评判\n` ### Additional info Here is some information I got from my test, which may be helpful: - I found that the Windows PowerShell window of `Launcher.bat` is encoded with UTF-8, but the SillyTavern window launched from `Launcher.bat` is encoded with GBK. - If I directly run SillyTavern via its `Start.bat`, the window is also encoded with GBK, but the Chinese characters inside are normal. ### Please tick the boxes - [x] I have explained the issue clearly, and I included all relevant info - [x] I have checked that this [issue hasn't already been raised](https://github.com/SillyTavern/SillyTavern/issues?q=is%3Aissue) - [x] I have checked the [docs](https://docs.sillytavern.app/) ![important](https://img.shields.io/badge/Important!-F6094E)
bsakaguchi 2026-10-15 18:06:32 +00:00
Author
Owner

@Meltryllis163 commented on GitHub (Sep 18, 2025):

有相同问题的人可以参考以下解决方案:

在 SillyTavern-Launcher\bin\functions\Home\log_wrapper.bat 文件中新增一个第二行,写下以下代码: chcp 65001 > nul 。

修改以后代码如下:

@echo off
:: Change here
chcp 65001 > nul
<!-- gh-comment-id:3308464651 --> @Meltryllis163 commented on GitHub (Sep 18, 2025): 有相同问题的人可以参考以下解决方案: 在 `SillyTavern-Launcher\bin\functions\Home\log_wrapper.bat` 文件中新增一个第二行,写下以下代码: `chcp 65001 > nul` 。 修改以后代码如下: ```cmd @echo off :: Change here chcp 65001 > nul ```
Sign in to join this conversation.
No description provided.