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

Support for symbols in global scripts. #32

Closed
HevelMc opened this issue Dec 5, 2018 · 6 comments
Closed

Support for symbols in global scripts. #32

HevelMc opened this issue Dec 5, 2018 · 6 comments
Labels
enhancement New feature or request

Comments

@HevelMc
Copy link

HevelMc commented Dec 5, 2018

Hello, I noticed that you can't put accents in global script files.

An error is regularly spammed in the bungeecord console.

13:40:20 [SEVERE] java.nio.charset.MalformedInputException: Input length = 1 13:40:20 [SEVERE] at java.nio.charset.CoderResult.throwException(CoderResult.java:281) 13:40:20 [SEVERE] at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339) 13:40:20 [SEVERE] at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) 13:40:20 [SEVERE] at java.io.InputStreamReader.read(InputStreamReader.java:184) 13:40:20 [SEVERE] at java.io.BufferedReader.fill(BufferedReader.java:161) 13:40:20 [SEVERE] at java.io.BufferedReader.readLine(BufferedReader.java:324) 13:40:20 [SEVERE] at java.io.BufferedReader.readLine(BufferedReader.java:389) 13:40:20 [SEVERE] at java.nio.file.Files.readAllLines(Files.java:3205) 13:40:20 [SEVERE] at me.limeglass.skungee.bungeecord.sockets.ServerTracker.globalScripts(ServerTracker.java:100) 13:40:20 [SEVERE] at me.limeglass.skungee.bungeecord.sockets.ServerTracker.update(ServerTracker.java:80) 13:40:20 [SEVERE] at me.limeglass.skungee.bungeecord.handlers.HeartbeatHandler.handlePacket(HeartbeatHandler.java:31) 13:40:20 [SEVERE] at me.limeglass.skungee.bungeecord.handlercontroller.SkungeeHandler.callPacket(SkungeeHandler.java:67) 13:40:20 [SEVERE] at me.limeglass.skungee.bungeecord.sockets.SocketRunnable.run(SocketRunnable.java:87) 13:40:20 [SEVERE] at java.lang.Thread.run(Thread.java:748)

Can you help me?

@TheLimeGlass
Copy link
Member

Potentially fixed in 1.0.7e, let me know if it still occurs, if so can you please provide your global scripts from the bungeecord Skungee folder.

@HevelMc
Copy link
Author

HevelMc commented Dec 15, 2018

No; I updated the plugin on the server and the bungeecord, but always this error as soon as I put an accent.
I don't understand because with a local server backup everything works fine.
Do you have any idea why this can only happen on the vps?

@Padlick01
Copy link

Padlick01 commented Dec 16, 2018

It's prompted when you are using symbols from UTF-8 like "»"
I have the same problem.

@TheLimeGlass TheLimeGlass added enhancement New feature or request and removed information required labels Dec 16, 2018
@TheLimeGlass TheLimeGlass changed the title Accents error in global scripts. Support for symbols in global scripts. Dec 16, 2018
@TheLimeGlass
Copy link
Member

Support for adjusting the Charset has been added in the next version https://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html

@HevelMc
Copy link
Author

HevelMc commented Dec 27, 2018

I have upgraded the plugin to the last version and updated the line
Charset: "default" to Charset: "UTF-8" in the bungeecord config file but now, when I send messages with accentueted characters (e.g é or ») a question mark is displayed. Any Idea ?

@TheLimeGlass
Copy link
Member

TheLimeGlass commented Dec 27, 2018

UTF-8 is the default option because it's the default on most systems. UTF-8 doesn't support a large range of symbols. You will need to lookup which character set your symbol belongs in and use that one.

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

3 participants