Hungarian(UTF-8) letters
S3nS3IW00 opened this issue · 22 comments
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!"
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
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.
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.
Can you http://gist.github.com the file?
Plugin uses Bukkit's YAML parsing. Have you tried running the file through a yaml parser?
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?
Normal: https://gist.github.com/S3nS3IW00/6abef1e46a2287d03d41e0854a055c8f
Ignored(after restarting): https://gist.github.com/S3nS3IW00/28b4d8cd22c1be3ba7574aa84e46dc58
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
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?
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?
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.)
Ah, that means you never set stuff in the config, so you're only "utf-8 compatible" if you only get. Ok thanks.
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.
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.
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.
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