Community discussions

MikroTik App
 
nightslider
just joined
Topic Author
Posts: 2
Joined: Mon Feb 15, 2021 10:41 pm

Emojis

Wed Apr 03, 2024 9:59 pm

Would we be able to put in emojis into the comments, dhcp name, interface name, etc. It would be fun. :D
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3532
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Emojis

Wed Apr 03, 2024 10:59 pm

No emojis. There is no UNICODE support at all (e.g. UTF-8 or UTF-16). RouterOS, essentially, uses single-byte code pages, specifically CP-1252.

See https://en.wikipedia.org/wiki/Windows-1252 for your options, mostly latin-based accents/etc. e.g. following add "€×××" as comment to ether1:
/interface/ethernet set [find default-name=ether1] comment="\80\D7\D7\D7"
And with this trick, the extended ASCII even then they only show up in winbox, as via CLI you'll see just the hexstring code. Basically, only plain us-ascii only thing works everywhere.
 
User avatar
patrikg
Member Candidate
Member Candidate
Posts: 262
Joined: Thu Feb 07, 2013 6:38 pm
Location: Stockholm, Sweden

Re: Emojis

Thu Apr 04, 2024 8:48 am

Have you tried unicode ?
/interface/ethernet set [find default-name=ether1] comment="\01\F4\80"
/interface/ethernet set [find default-name=ether1] comment="\F0\9F\92\80"
Have tested my self and seeing thats not working :(
 
Pea
Member Candidate
Member Candidate
Posts: 234
Joined: Fri Jul 17, 2015 11:07 pm
Location: Czech

Re: Emojis

Thu Apr 04, 2024 4:33 pm

You can use emojis in SSID, this is fun to have wifi named just 🥰
/interface wifi set [find name="wlan1"] configuration.ssid="\F0\9F\A5\B0"
https://observablehq.com/@a2m0/utf2rsc#decodeStart
or
https://r-1.ch/mikrotik-unicode-ssid-generator.php

Who is online

Users browsing this forum: GoogleOther [Bot], jvanhambelgium and 26 guests