Fork me on GitHub
  May 26, 2018, 11:51:05 pm
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Kick players with reason of "ы". It is the Russian letter.  (Read 3249 times)
koka3000
Newbie
*
Posts: 12


View Profile
« 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);
Logged
thegk01
Newbie
*
Posts: 39



View Profile
« 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 Wink

-- thegk01
Logged

// A wild INCONSISTENCY appears!
//
//  --------------
// | >FIGHT  PkMn |
// |  ITEM   RUN  |
//  --------------
//
// deoxxa uses MACRO ATTACK!

from plugin.h
Fador
Administrator
Full Member
*****
Posts: 126


View Profile
« Reply #2 on: April 29, 2011, 09:13:26 pm »

and still Notch changed from UTF-8 to UTF-16 ...
Logged
Delirium
Newbie
*
Posts: 27



View Profile
« 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 (ß).
Logged

Make it idiot proof and someone will make a better idiot.
thegk01
Newbie
*
Posts: 39



View Profile
« Reply #4 on: April 30, 2011, 06:07:13 pm »

I know. Had problems with the ß letter, too Cheesy
I think that ä, ö, and ü are in the game because they're swedish letters, too.
Logged

// A wild INCONSISTENCY appears!
//
//  --------------
// | >FIGHT  PkMn |
// |  ITEM   RUN  |
//  --------------
//
// deoxxa uses MACRO ATTACK!

from plugin.h
Delirium
Newbie
*
Posts: 27



View Profile
« 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...
Logged

Make it idiot proof and someone will make a better idiot.
thegk01
Newbie
*
Posts: 39



View Profile
« 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
Logged

// A wild INCONSISTENCY appears!
//
//  --------------
// | >FIGHT  PkMn |
// |  ITEM   RUN  |
//  --------------
//
// deoxxa uses MACRO ATTACK!

from plugin.h
Delirium
Newbie
*
Posts: 27



View Profile
« Reply #7 on: April 30, 2011, 10:35:55 pm »

No, Notch changed it with Minecraft Beta 1.5_01 to UTF-16.
Logged

Make it idiot proof and someone will make a better idiot.
thegk01
Newbie
*
Posts: 39



View Profile
« 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.  Undecided
Logged

// A wild INCONSISTENCY appears!
//
//  --------------
// | >FIGHT  PkMn |
// |  ITEM   RUN  |
//  --------------
//
// deoxxa uses MACRO ATTACK!

from plugin.h
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!