Page 1 of 1

Emojis in game chat

Posted: Thu Oct 03, 2019 10:16 pm
by alamothe
Game chat does not support emojis! How are we supposed to negotiate a difficult situation?

Re: Emojis in game chat

Posted: Fri Oct 04, 2019 12:04 am
by dargorygel
The old school way... : - )

Re: Emojis in game chat

Posted: Mon Oct 07, 2019 7:57 pm
by bunp
I find :^) has an ~80% chance to instantly sour negotiations when used but I just can't help myself.

Re: Emojis in game chat

Posted: Mon Oct 07, 2019 8:26 pm
by Restitution
))<>((

Re: Emojis in game chat

Posted: Wed Oct 09, 2019 9:25 am
by Foldemort
8=======D (an army tank with a long cannon)

Re: Emojis in game chat

Posted: Wed Oct 09, 2019 9:32 am
by tobieee911
lol

Re: Emojis in game chat

Posted: Wed Oct 09, 2019 12:23 pm
by e.m.c^42
You don't need those pesky round emojis.

look at all this passion and sheer emotion conveyed between these two countries:

?!!
(ノ°Д°)ノ︵ ┻━┻

___________

:/
___________

(;⌣̀_⌣́)
___________

:P
___________

-_-
___________

;)
___________

(凸ಠ益ಠ)︻デ═== ✴

Re: Emojis in game chat

Posted: Sun Aug 23, 2020 7:38 am
by A_Tin_Can
I think this is just because of the character set on the database and DB table used to store the messages. Something like this would probably work to fix it: https://stackoverflow.com/questions/394 ... l-database

Re: Emojis in game chat

Posted: Sun Aug 23, 2020 7:39 am
by A_Tin_Can
As a workaround, you can just write out "eggplant" as necessary.

Re: Emojis in game chat

Posted: Sun Aug 23, 2020 2:34 pm
by Peregrine Falcon
It's actually worse than just not having emojis display properly. They actually completely break off the message being posted—only the text before the emoji makes it into the db.

Most webDip tables, particularly the wd_gamemessages table, are set to utf8. They should really be converted to the standard collation utf8mb4_0900_ai_ci. (Due to a weird and annoying quirk of MySQL naming, the utf8 character set is not actually utf-8-compliant. The newer utf8mb4 set is what's actually needed... /facepalm_emoji)

That said, when I made the change on my test server, emojis were no longer cutting off the message, which is good, but still were only showing as ???? and I'm not sure why.

Re: Emojis in game chat

Posted: Sun Aug 23, 2020 3:21 pm
by A_Tin_Can
There are a few places you might need to put it - take a look at eg: https://www.toptal.com/php/a-utf-8-prim ... -and-mysql

Re: Emojis in game chat

Posted: Sun Aug 23, 2020 6:21 pm
by Peregrine Falcon
Oh lol I just hadn't looked closely enough at the db connection before and missed where it specified the encoding.

The table encoding just needs to be converted to utf8mb4 in mySQL, then database.php has to change set names from utf8 to utf8mb4 on line 118.

That made the full unicode display properly on my test server.

Re: Emojis in game chat

Posted: Sun Aug 23, 2020 7:10 pm
by Claesar
Viaduct