fador/mineserver — pull request #187 by fredreichbier (2012-04-04 18:57:57+00:00)
Title: Fixed bug where certain UCS-2 codepoints were not decoded correctly

This fixes the usage of certain characters in the chat, e.g. "ö", and it happened because there was a `char` that needed to be an `unsigned char`.
ö is the [Unicode codepoint 246](http://www.carrickfergus.de/public/unicode.php?action=by_cpnthex&cpnthex=f6). In UCS-2, it is represented by the sequence `0x00 0xf6` (big endian). Without the change, the second byte is treated as a negative number, which gets really big when casted to `unsigned int`. Sounds fun, but I can't really explain it. :D