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

[FEATURE]Force configuration file loading encoding to UTF-8 #154

Open
ailanlana opened this issue May 12, 2024 · 15 comments
Open

[FEATURE]Force configuration file loading encoding to UTF-8 #154

ailanlana opened this issue May 12, 2024 · 15 comments
Labels
enhancement New feature or request

Comments

@ailanlana
Copy link

Many high-version plugins default UTF-8 encoding, but in the windows environment Crucible's configuration file encoding for ANSI, which leads to a lot of plug-ins need to manually transcode, part of the mandatory use of UTF-8 plug-ins can not be used!
Can we force UTF-8 encoding like server core Uranium?

@ailanlana ailanlana added the enhancement New feature or request label May 12, 2024
@EverNife
Copy link
Member

Have you tried adding

-Dfile.encoding=UTF-8 At your run.bat file?

@ailanlana
Copy link
Author

Oh, thanks! It's okay!

@8MiYile
Copy link

8MiYile commented Jan 22, 2025

@EverNife pls reopen and support
because in China, some people (server owner) use multicraft web panel
not have permission change java args

@xstmass
Copy link

xstmass commented Jan 22, 2025

@EverNife pls reopen and support because in China, some people (server owner) use multicraft web panel not have permission change java args

But multicraft allows you to write any java arguments or is this about some other multicraft?

@EverNife
Copy link
Member

EverNife commented Jan 22, 2025

@8MiYile can you try adding the -Dfile.encoding=UTF-8 on the inject.properties file that is on the root of your server?

Also test with latest staging build

(i am not quite sure if file encoding can be readen on the inject file, might be worth a test :D)

@8MiYile
Copy link

8MiYile commented Jan 22, 2025

@xstmass this multicraft is from taobao.com buy it and running to Windows Server 2012
it's just use/upload/download
not have multicraft's full permission

@8MiYile
Copy link

8MiYile commented Jan 22, 2025

@EverNife inject.properties is useless...hmmm
idk why

@EverNife
Copy link
Member

It seems Uranium has a config to force the default reading of bukkit config file reader to UTF

UraniumMC/Uranium@4ad3dff

We might be able to create an option to do the same.

Is not the same as doing the -Dfile.encoding=UTF-8 as using the argument is the correct approach.

But should fix some cases

@EverNife EverNife reopened this Jan 22, 2025
@8MiYile
Copy link

8MiYile commented Jan 24, 2025

It's important to know when this will be resolved

@EverNife
Copy link
Member

I will make some tests and send you a dev jar.
Are you on our discord?

@8MiYile
Copy link

8MiYile commented Jan 26, 2025

@EverNife

Image

i don't know why discord give me this

@EverNife
Copy link
Member

Thats weird, add me over there:

EverNife (id: 176383963986657280)

@8MiYile
Copy link

8MiYile commented Jan 26, 2025

what the hell
i tried to search this id
discord said My operation is abnormal, has automatically logged you out of the login, the next login need to verify the e-mail or cell phone number
huh?

@EverNife
Copy link
Member

@8MiYile maybe you have not verified your email account on discord?
It seems to be a discord problem T.T

@8MiYile
Copy link

8MiYile commented Jan 27, 2025

Not
Just pasted in the numbers in the add friends section.

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

No branches or pull requests

4 participants