Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在 Windows + ibm semeru openjdk 的情况下,公告栏的文字会出现乱码 #110

Open
I-love-study opened this issue May 22, 2022 · 5 comments

Comments

@I-love-study
Copy link

当使用 Windows + ibm semeru openjdk 的情况下, Mirai Console Loader 公告栏会出现乱码
注:必须是两个同时成立的情况下才会出现,在Windows上使用其他发行的 openjdk 或者在 linux 系统下使用 ibm semeru openjdk 则没有发现乱码

❯ ./mcl
  16:42:15 [INFO] iTXTech Mirai Console Loader version 2.1.0-71ec418
  16:42:15 [INFO] https://github.com/iTXTech/mirai-console-loader
  16:42:15 [INFO] This program is licensed under GNU AGPL v3
  16:42:18 [INFO] Mirai Console Loader Announcement:
Mirai Console Loader 鍏憡鏍?
濡傛灉鍦ㄥ浘鐗囦笂浼犵殑鏃跺€欓亣鍒伴棶棰樿涓庢垜浠仈绯?(闇€瑕佹彁渚涘浘鐗囨枃浠舵簮鏈?
`- 濡?Unsupported image type for ExternalResource *
`  considering use gif/png/bmp/jpg format.
`- Tracker: https://github.com/mamoe/mirai/issues/new/choose

甯哥敤璧勬簮鏁村悎
`- https://mirai.mamoe.net/topic/653

MCL 宸叉帹鍑?2.1.0锛屾洿濂界殑鏀寔 Mirai 2.11 鐨勬彃浠剁郴缁燂紝寤鸿鏇存柊銆?柊銆?

  16:42:18 [INFO] Verifying "net.mamoe:mirai-console" v2.11.0
  16:42:18 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.11.0
  16:42:18 [INFO] Verifying "net.mamoe:mirai-core-all" v2.11.0
  16:42:19 [INFO] Verifying "org.itxtech:mcl-addon" v2.0.2
  16:42:19 [INFO] Verifying "net.mamoe:mirai-api-http" v2.5.2
2022-05-22 16:42:20 I/main: Starting mirai-console...
2022-05-22 16:42:20 I/main: Backend: version 2.11.0, built on 2022-05-19 22:08:40.
2022-05-22 16:42:20 I/main: Frontend Terminal: version 2.11.0, provided by Mamoe Technologies
2022-05-22 16:42:20 I/main: Welcome to visit https://mirai.mamoe.net/
2022-05-22 16:42:21 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2022-05-22 16:42:21 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation
2022-05-22 16:42:21 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2022-05-22 16:42:21 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http v2.5.2
2022-05-22 16:42:21 I/plugin: Successfully loaded plugin MCL Addon v2.0.2
2022-05-22 16:42:21 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop
2022-05-22 16:42:21 I/Mirai HTTP API: ********************************************************
2022-05-22 16:42:21 I/ws adapter: >>> [ws adapter] is listening at ws://localhost:8070
2022-05-22 16:42:21 I/http adapter: >>> [http adapter] is listening at http://localhost:8070
2022-05-22 16:42:21 I/Mirai HTTP API: Http api server is running with verifyKey: I_Love_Study
2022-05-22 16:42:21 I/Mirai HTTP API: adaptors: [ws,http]
2022-05-22 16:42:21 I/Mirai HTTP API: ********************************************************
2022-05-22 16:42:21 I/MCL Addon: iTXTech MCL Version: 2.0.1-b5303b5
2022-05-22 16:42:21 W/MCL Addon: iTXTech Soyuz 未安装,Soyuz MCL Handler 特性已禁用
2022-05-22 16:42:21 I/main: 2 plugin(s) enabled.
2022-05-22 16:42:21 I/WindowHelperJvm: Mirai 正在使用桌面环境. 如遇到验证码将会弹出对话框. 可添加 JVM 属性 `mirai.no-desktop` 以关闭.
2022-05-22 16:42:21 I/WindowHelperJvm: Mirai is using desktop. Captcha will be thrown by window popup. You can add `mirai.no-desktop` to JVM properties (-Dmirai.no-desktop) to disable it.
@cssxsh
Copy link
Contributor

cssxsh commented Jun 2, 2022

你需要调整终端的编码

@I-love-study
Copy link
Author

不管活动代码页是936还是65001,都是同样的编码错误
而且仅仅只公告栏的文字出现乱码,log并没有出现乱码

@SekiBetu
Copy link

#138 本仓库开发者使用的文本编辑器似乎是倾向于windows编码的,会出现各种编码问题,希望开发者重视

@guimc233
Copy link

guimc233 commented Nov 8, 2022

在openjdk 19上同样有这个问题

@bunnyi116
Copy link

在 mcl.cmd 里面加上 chcp 65001 把终端改utf-8编码就行

参考

@echo off
chcp 65001
setlocal
set JAVA_BINARY=java
%JAVA_BINARY% -jar mcl.jar %*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants