Mineserver Community

Mineserver => Support => Topic started by: koka3000 on April 27, 2011, 02:20:34 pm



Title: Kick players with reason of "ы". It is the Russian letter.
Post by: koka3000 on April 27, 2011, 02:20:34 pm
Kick players with reason of "ы". It is the Russian letter.
Got an error:
Internal exception: Java.io.UTFDataFormatException: malformed input around byte 0

my code

std::string msg = "ы";
user->kick(msg);


Title: Re: Kick players with reason of "ы". It is the Russian letter.
Post by: thegk01 on April 29, 2011, 06:28:50 pm
There are two problems:
1. Mineserver is not able to manage russian letters
2. Minecraft has in its font system only this letters:

!"#$%&'()*+,-./
0123456789:;<=>?
@ABCDEFGHIJKLMNO
PQRSTUVWXYZ[\]^_
'abcdefghijklmno
pqrstuvwxyz{|}~‚

... and some special letters (but not russian)

Forget it and use English. I know its bad but if there would be russian letters, there should be Chinese, Japanese, etc. letters, too. And this would be too much ;)

-- thegk01


Title: Re: Kick players with reason of "ы". It is the Russian letter.
Post by: Fador on April 29, 2011, 09:13:26 pm
and still Notch changed from UTF-8 to UTF-16 ...


Title: Re: Kick players with reason of "ы". It is the Russian letter.
Post by: Delirium on April 30, 2011, 12:08:54 am
Just for correctness: minecraft also knows the german letters äöü, but surprisingly not the sharp s (ß).


Title: Re: Kick players with reason of "ы". It is the Russian letter.
Post by: thegk01 on April 30, 2011, 06:07:13 pm
I know. Had problems with the ß letter, too :D
I think that ä, ö, and ü are in the game because they're swedish letters, too.


Title: Re: Kick players with reason of "ы". It is the Russian letter.
Post by: Delirium on April 30, 2011, 09:55:03 pm
I know it's bit offtopic, but I really don't know why notch uses UTF-16 if he limits the availiable letters to such a small pool...


Title: Re: Kick players with reason of "ы". It is the Russian letter.
Post by: thegk01 on April 30, 2011, 10:25:46 pm
I think it's UTF-8.
In the fonts.txt file stands "Needs to be in UTF-8!" (Or a very similar sentence - can't look into it at the moment)

--thegk01


Title: Re: Kick players with reason of "ы". It is the Russian letter.
Post by: Delirium on April 30, 2011, 10:35:55 pm
No, Notch changed it with Minecraft Beta 1.5_01 to UTF-16.


Title: Re: Kick players with reason of "ы". It is the Russian letter.
Post by: thegk01 on May 02, 2011, 01:51:43 pm
I have 1.5_01, and the "Needs to be in UTF-8!" message still stands in my font.txt file.  :-\