Comments (14)
乱码问题罕见,之前遇到过一个用户也是乱码:
但他的乱码情况和你的不一样。
from ark-pets.
已发布临时测试版本v2.1.0-beta
,通过显式指定 JavaFX 字体尝试解决乱码问题。请你下载并尝试是否解决。
from ark-pets.
已发布临时测试版本
v2.1.0-beta
,通过显式指定 JavaFX 字体尝试解决乱码问题。请你下载并尝试是否解决。
没有,还是和之前一样
from ark-pets.
from ark-pets.
https://imgse.com/i/p92Ylfe
我没勾选UTF-8,编码是GBK
from ark-pets.
https://imgse.com/i/p92Ylfe
我没勾选UTF-8,编码是GBK
你的区域设置是正确的。现在我已重新上传v2.1.0-beta
的程序文件,请你重新安装后,将日志等级调为DEBUG
,然后发出你的desktop.log
日志,以检查 Java 编码问题。
from ark-pets.
# *** ArkPets Log - desktop (PID37292) ***
# Created: 2023-05-17 22:15:09,340
# OS: Windows 11 (amd64)
# Java version: 17.0.7
# Working directory: D:\ArkPets
22:15:09,376 [INFO] Config: Default config was copied successfully.
22:15:09,516 [INFO] System: Entering the app of DesktopLauncher
22:15:10,837 [INFO] Launcher: Initializing (JavaFX 20-ea, ArkPets 2.1.0)
22:15:10,842 [INFO] Launcher: Initialized
22:15:11,807 [INFO] Network: Downloading https://arkpets.harryh.cn/p/arkpets/client/api.php?type=queryVersion&cliVer=2.1.0&source=auto to temp/ApiQueryVersionCache
22:15:12,169 [WARN] ModelManager: Failed to initialize model dataset due to file not found. (models_data.json (系统找不到指定的文件。))
22:15:12,174 [INFO] ModelManager: Search "" (0)
22:15:12,206 [INFO] ModelManager: Reloaded
22:15:13,475 [INFO] Network: Downloaded temp/ApiQueryVersionCache , file size: 181
22:15:13,476 [INFO] Checker: Application version check finished
from ark-pets.
# *** ArkPets Log - desktop (PID37292) *** # Created: 2023-05-17 22:15:09,340 # OS: Windows 11 (amd64) # Java version: 17.0.7 # Working directory: D:\ArkPets 22:15:09,376 [INFO] Config: Default config was copied successfully. 22:15:09,516 [INFO] System: Entering the app of DesktopLauncher 22:15:10,837 [INFO] Launcher: Initializing (JavaFX 20-ea, ArkPets 2.1.0) 22:15:10,842 [INFO] Launcher: Initialized 22:15:11,807 [INFO] Network: Downloading https://arkpets.harryh.cn/p/arkpets/client/api.php?type=queryVersion&cliVer=2.1.0&source=auto to temp/ApiQueryVersionCache 22:15:12,169 [WARN] ModelManager: Failed to initialize model dataset due to file not found. (models_data.json (系统找不到指定的文件。)) 22:15:12,174 [INFO] ModelManager: Search "" (0) 22:15:12,206 [INFO] ModelManager: Reloaded 22:15:13,475 [INFO] Network: Downloaded temp/ApiQueryVersionCache , file size: 181 22:15:13,476 [INFO] Checker: Application version check finished
诶,我忘了你乱码没法在启动器调日志等级。
请打开安装目录下的ArkPetsConfig.json
,将字段logging_level
从INFO
改为大写DEBUG
,保存后再启动启动器,然后再发送新的desktop.log
日志。
from ark-pets.
# *** ArkPets Log - desktop (PID30704) ***
# Created: 2023-05-18 19:24:20,962
# OS: Windows 11 (amd64)
# Java version: 17.0.7
# Working directory: D:\ArkPets
19:24:21,906 [INFO] System: Entering the app of DesktopLauncher
19:24:26,333 [INFO] Launcher: Initializing (JavaFX 20-ea, ArkPets 2.1.0)
19:24:26,334 [DEBUG] Launcher: Property file.encoding = GBK
19:24:26,334 [DEBUG] Launcher: Property sun.jnu.encoding = GBK
19:24:26,334 [DEBUG] Launcher: Default charset = GBK
19:24:26,378 [INFO] Launcher: Initialized
19:24:28,605 [INFO] Network: Downloading https://arkpets.harryh.cn/p/arkpets/client/api.php?type=queryVersion&cliVer=2.1.0&source=auto to temp/ApiQueryVersionCache
19:24:29,096 [WARN] ModelManager: Failed to initialize model dataset due to file not found. (models_data.json (系统找不到指定的文件。))
19:24:29,098 [INFO] ModelManager: Search "" (0)
19:24:29,128 [INFO] ModelManager: Reloaded
19:24:31,095 [INFO] Network: Downloaded temp/ApiQueryVersionCache , file size: 183
19:24:31,096 [INFO] Checker: Application version check finished
19:24:46,155 [INFO] System: Exited from DesktopLauncher successfully
from ark-pets.
# *** ArkPets Log - desktop (PID30704) *** # Created: 2023-05-18 19:24:20,962 # OS: Windows 11 (amd64) # Java version: 17.0.7 # Working directory: D:\ArkPets 19:24:21,906 [INFO] System: Entering the app of DesktopLauncher 19:24:26,333 [INFO] Launcher: Initializing (JavaFX 20-ea, ArkPets 2.1.0) 19:24:26,334 [DEBUG] Launcher: Property file.encoding = GBK 19:24:26,334 [DEBUG] Launcher: Property sun.jnu.encoding = GBK 19:24:26,334 [DEBUG] Launcher: Default charset = GBK 19:24:26,378 [INFO] Launcher: Initialized 19:24:28,605 [INFO] Network: Downloading https://arkpets.harryh.cn/p/arkpets/client/api.php?type=queryVersion&cliVer=2.1.0&source=auto to temp/ApiQueryVersionCache 19:24:29,096 [WARN] ModelManager: Failed to initialize model dataset due to file not found. (models_data.json (系统找不到指定的文件。)) 19:24:29,098 [INFO] ModelManager: Search "" (0) 19:24:29,128 [INFO] ModelManager: Reloaded 19:24:31,095 [INFO] Network: Downloaded temp/ApiQueryVersionCache , file size: 183 19:24:31,096 [INFO] Checker: Application version check finished 19:24:46,155 [INFO] System: Exited from DesktopLauncher successfully
运行时日志中输出的字符集属性都是正常的(GBK
),现在我们正在调查其他原因。
值得注意的是,在你的程序界面中,字符编码似乎被全部右移了 3 个字符。例如:
A -> D
r -> u
k -> n
。
Update:
感觉类似于凯撒加密。请你回忆一下电脑有没有出现过奇怪的现象,安装过特别的软件,调整过特别的设置?
from ark-pets.
乱码问题罕见,之前遇到过一个用户也是乱码:
但他的乱码情况和你的不一样。
经过排查,这个用户是因为将系统字体 微软雅黑 的字体文件替换掉了导致的乱码问题。
你是否也有过类似的设置修改?
from ark-pets.
经过排查,这个用户是因为将系统字体 微软雅黑 的字体文件替换掉了导致的乱码问题。 你是否也有过类似的设置修改?
是的,替换成了新雅黑(Y轴抗锯齿版本)
from ark-pets.
现在已将OTF字体文件(思源黑体 Source Han Sans CN)内置到程序资源中,使其不再使用系统默认字体。
我已重新上传v2.1.0-beta
的程序文件,请你重新安装,并验证是否解决。
from ark-pets.
现在已将OTF字体文件(思源黑体 Source Han Sans CN)内置到程序资源中,使其不再使用系统默认字体。
我已重新上传
v2.1.0-beta
的程序文件,请你重新安装,并验证是否解决。
问题已解决,界面不再乱码
from ark-pets.
Related Issues (20)
- [Feature Request] 支持多屏幕 HOT 2
- [Exception] 无法启动桌宠窗口: java.awt.AWTError HOT 3
- [Feature Request] 添加自定义桌宠窗口大小的功能 HOT 1
- [Exception] 桌宠运行时异常退出 HOT 2
- [Bug] 出現"ArkPets Core"無法隱藏的問題 HOT 8
- [Feature Request] 系统托盘图标功能增强 HOT 2
- [Bug] 某些模型的组件图层缺失 HOT 1
- [Bug] 無法隱藏寵物視窗 HOT 3
- [Bug] 在桌面时小人会落到屏幕底端而非保持在任务栏上 HOT 1
- [Exception] 无法启动桌宠窗口 HOT 2
- [Bug] 干员待机动作超出边界无法显示 HOT 1
- [Feature Request] 新增通过时装品牌搜索干员小人
- [Enhancement] Windows安装程序细节调整 HOT 2
- [Bug] 动作保持时拖动浮起 HOT 2
- [Bug] 开机自启动后窗口在任务栏中保持高亮状态 HOT 1
- [Bug] 桌宠尝试原地跳高 HOT 4
- [Feature Request] 关于透明模式记忆和快捷键的建议
- [Frature Request] 添加干员小人躺下的动作 HOT 1
- [Exception] 背景有黑边该怎么解决
- [Feature Request] 增加我方干员战斗小人模型 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ark-pets.