I cannot confirm. I see that it's encoded as "\ud83c\udfae\" which seems correct
What client are you using?
[Bug] Wrong Encoding Special Characters
Moderator: NADEO
Re: [Bug] Wrong Encoding Special Characters
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
Re: [Bug] Wrong Encoding Special Characters
What bug on the playerpage? You mean in the nickname?
I've added one in my nickname, and it's displayed well: https://www.maniaplanet.com/players/magnetik.org
I've added one in my nickname, and it's displayed well: https://www.maniaplanet.com/players/magnetik.org
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
Re: [Bug] Wrong Encoding Special Characters
Theses are 2 different char, first one is U+1F3AE (the game pad) and the second one is U+E964 (something like a shaped stone)
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
Re: [Bug] Wrong Encoding Special Characters
It's mapped in the client to an icon from https://github.com/nicodinh/kenney-icon-font/ (see the footnote on the emojis manialink) and thus these icons are not displayed on the maniaplanet website either.https://unicode-table.com/en/blocks/private-use-area/ wrote:In Unicode, the Private Use Areas (PUA) are three ranges of code points (U+E000–U+F8FF in the BMP, and in planes 15 and 16) that, by definition, will not be assigned characters by the Unicode Consortium. The code points in these areas cannot be considered as standardized characters in Unicode itself. They are intentionally left undefined so that third parties may define their own characters without conflicting with Unicode Consortium assignments.
Re: [Bug] Wrong Encoding Special Characters
That's super exact. There are some ways to do the same using CSS I guess but I never had time to do it
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
Re: [Bug] Wrong Encoding Special Characters
Code: Select all
nickname.split('').map(c => {const x = c.charCodeAt(0); return x >= 0xf000 && x >= 0xf2e0 ? `<i class="fa" data-icon="&#${x};"></i>` : c).join('')
idk if there is any useful character replacement function.
Code: Select all
.fa[data-icon]:before, .ki[data-icon]:before {
content: attr(data-icon);
}
Hype for a the next playerpage update xD
Who is online
Users browsing this forum: No registered users and 1 guest