For$
<!-- begin site header -->
<div id=

Author Topic: Kick players with reason of "ы". It is the Russian letter.  (Read 10705 times)

koka3000

  • Newbie
  • *
  • Posts: 12
    • View Profile
Kick players with reason of "ы". It is the Russian letter.
« 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);

thegk01

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Kick players with reason of "ы". It is the Russian letter.
« Reply #1 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
// A wild INCONSISTENCY appears!
//
//  --------------
// | >FIGHT  PkMn |
// |  ITEM   RUN  |
//  --------------
//
// deoxxa uses MACRO ATTACK!

from plugin.h

Fador

  • Administrator
  • Full Member
  • *****
  • Posts: 126
    • View Profile
Re: Kick players with reason of "ы". It is the Russian letter.
« Reply #2 on: April 29, 2011, 09:13:26 pm »
and still Notch changed from UTF-8 to UTF-16 ...

Delirium

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Kick players with reason of "ы". It is the Russian letter.
« Reply #3 on: April 30, 2011, 12:08:54 am »
Just for correctness: minecraft also knows the german letters äöü, but surprisingly not the sharp s (ß).
Make it idiot proof and someone will make a better idiot.

thegk01

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Kick players with reason of "ы". It is the Russian letter.
« Reply #4 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.
// A wild INCONSISTENCY appears!
//
//  --------------
// | >FIGHT  PkMn |
// |  ITEM   RUN  |
//  --------------
//
// deoxxa uses MACRO ATTACK!

from plugin.h

Delirium

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Kick players with reason of "ы". It is the Russian letter.
« Reply #5 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...
Make it idiot proof and someone will make a better idiot.

thegk01

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Kick players with reason of "ы". It is the Russian letter.
« Reply #6 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
// A wild INCONSISTENCY appears!
//
//  --------------
// | >FIGHT  PkMn |
// |  ITEM   RUN  |
//  --------------
//
// deoxxa uses MACRO ATTACK!

from plugin.h

Delirium

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Kick players with reason of "ы". It is the Russian letter.
« Reply #7 on: April 30, 2011, 10:35:55 pm »
No, Notch changed it with Minecraft Beta 1.5_01 to UTF-16.
Make it idiot proof and someone will make a better idiot.

thegk01

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Kick players with reason of "ы". It is the Russian letter.
« Reply #8 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.  :-\
// A wild INCONSISTENCY appears!
//
//  --------------
// | >FIGHT  PkMn |
// |  ITEM   RUN  |
//  --------------
//
// deoxxa uses MACRO ATTACK!

from plugin.h