Extra Hard Mode

Extra Hard Mode

63.1k Downloads

Hungarian(UTF-8) letters

S3nS3IW00 opened this issue · 22 comments

commented

The #116 problem is'nt solved!

"Hello dear Developer!

I am an hungarian developer, and I have problem with messages.yml. I translate the messages, but I can't write hungarian letters, beause this plugin is ignore them. I tried to write in "" but its ignored too. Please fix it! I need UTF-8 compatible!"

I show you a picture about this problem:
kepernyofelvetel 244

commented

You need to escape double quotation marks if you wish to use them. As for the rest, it's simply reading whatever bukkit returns from its parsing of the messages.yml. I do recall something about this in the spigot thread (for GriefPrevention), can't recall where or what the solution was though.

Um, you might also want to consider wrapping the String in double quotation marks as well

commented

Without double qoutation the error is same, because does'nt matter I write quotation, or not. The yaml is valid with unicode(Example: á, é, ő). But the plugin is ignore them.

commented

I think the problem is in scoreboard manager. Because the scoreboard does'nt accept unicode characters, and you have blocked. I use chat message, and please enable unicode for chat message.

commented

Can you http://gist.github.com the file?

commented

The double quotation is'nt help. The plugin ignore.

commented

Plugin uses Bukkit's YAML parsing. Have you tried running the file through a yaml parser?

commented

Weird. I could try recompiling with explicit UTF-8 encoding but that should only affect the literal strings in the code. What's your server startup arguments?

commented

What do you mean by argument?

commented

Your server start script, basically.

commented

Note: The normal file same, than without double quotation.

commented

this?

java -jar paperclip.jar
PAUSE

commented

Ah ok, yea I'm not sure how bukkit/java reacts to files with utf-8 characters that are not in ANSI (at least that's default on Java on Windows). Enforce Java to start in utf-8 by adding this arg before the -jar

-Dfile.encoding=UTF-8

commented

Thank you so much! This line is solved the problem! But you can put UTF-8 compatible in the plugin. My plugin is too use UTF-8 characters.

I have one more question. Some messages have "EHM" prefix, and it does'nt editable. Can you add edit for this?

commented

But you can put UTF-8 compatible in the plugin. My plugin is too use UTF-8 characters.

Mind sharing how? I'd assume you're not using Bukkit's YamlConfiguration then.

Some messages have "EHM" prefix, and it does'nt editable. Can you add edit for this?

#51

I'll get to it when I get through other stuff on my to-do list, especially since it's an enhancement. (Since you asked me though I think it's okay to say that being a patron can help bump this up in priority.)

commented

I do'nt use getConfig().set("", "");, I use only getConfig().get("");.
I have few pictures about this.
(Note: I reset the script to default)
kepernyofelvetel 279
kepernyofelvetel 280
2018-01-23_17 32 08
kepernyofelvetel 278

commented

Ah, that means you never set stuff in the config, so you're only "utf-8 compatible" if you only get. Ok thanks.

commented

I test it with set. It works fine. I do'nt know what is the problem with your plugin, because I never meet this problem. Your plugin is amazing, ang very usefull, only need to solve this. I try to search the "mistake" in the source, but I was'nt found nothing. Sorry.

commented

I set this, and it works fine after restart. I show the code also. This string has symbol.
kepernyofelvetel 283
kepernyofelvetel 282
2018-01-24_22 17 55

commented

You set non-ANSI chars? Try characters like the section symbol... I remember having issues with another plugin that did this and had to resolve with the Java arg.

commented

I am sorry, because I am from Hungary and I don't understand perfectly what do you mean. I don't know how to solve the problem.

commented

Well, I was more regarding literally inserting the symbols from code instead of taking it from a command or similar, since that's just likely passing it raw in and out. But ok.

Re: the other plugin I had issues with: https://dev.bukkit.org/projects/scs/issues/856