- made the menu's text input handler Unicode capable.
Also make sure that the savegame description remains readable. Unlike in-game text this can be done without double-encoding existing UTF-8.
This commit is contained in:
parent
54cb16ad8e
commit
deb233677e
13 changed files with 111 additions and 30 deletions
|
|
@ -292,9 +292,8 @@ static void CT_AddChar (int c)
|
|||
if (CharLen < QUEUESIZE-2)
|
||||
{
|
||||
int size;
|
||||
uint8_t encode[4];
|
||||
ChatQueue.Pop();
|
||||
if (utf8_encode(c, encode, &size) == 0)
|
||||
auto encode = MakeUTF8(c, &size);
|
||||
if (*encode)
|
||||
{
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue