From 1e5f8eb33bc41cb59faf059e83701152785cabea Mon Sep 17 00:00:00 2001 From: yingyu5658 Date: Sat, 13 Dec 2025 08:33:08 +0800 Subject: Initial commit --- ...247\243\345\206\263\346\226\271\346\241\210.md" | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "content/posts/Spigot\346\234\215\345\212\241\347\253\257\346\216\247\345\210\266\345\217\260\344\270\255\346\226\207\344\271\261\347\240\201\350\247\243\345\206\263\346\226\271\346\241\210.md" (limited to 'content/posts/Spigot服务端控制台中文乱码解决方案.md') diff --git "a/content/posts/Spigot\346\234\215\345\212\241\347\253\257\346\216\247\345\210\266\345\217\260\344\270\255\346\226\207\344\271\261\347\240\201\350\247\243\345\206\263\346\226\271\346\241\210.md" "b/content/posts/Spigot\346\234\215\345\212\241\347\253\257\346\216\247\345\210\266\345\217\260\344\270\255\346\226\207\344\271\261\347\240\201\350\247\243\345\206\263\346\226\271\346\241\210.md" new file mode 100644 index 0000000..f0bc53c --- /dev/null +++ "b/content/posts/Spigot\346\234\215\345\212\241\347\253\257\346\216\247\345\210\266\345\217\260\344\270\255\346\226\207\344\271\261\347\240\201\350\247\243\345\206\263\346\226\271\346\241\210.md" @@ -0,0 +1,34 @@ +--- +CopyRight: true +NoCover: true +ShowReward: false +ShowToc: show +abbrlink: 4161445720 +author: yingyu5658 +categories: +- 往昔 +cid: 181 +cover: images\2024\12\2743265221.jpg +date: "2025-01-04 08:35:00" +desc: null +keywords: null +layout: post +showTimeWarning: true +slug: 181 +status: publish +summaryContent: null +tags: +- Java +- 服务器 +- Minecraft +thumb: null +title: Spigot服务端控制台中文乱码解决方案 +updated: 2025/01/04 08:35:54 +--- +1. 把``-Dfile.encoding=UTF-8``加在开服脚本文件的``-jar``前即可。 +2. 在启动脚本第一行加上`chcp 65001` +我的启动脚本如下: +```bash +chcp 65001 +java -Dfile.encoding=UTF-8 -jar spigot-1.21.jar +``` -- cgit v1.2.3