janbar / noson-app

The essential to control music from your SONOS devices on Linux platforms
GNU General Public License v3.0
335 stars 28 forks source link

Unicode Emojis not supported #179

Closed hzulla closed 1 year ago

hzulla commented 2 years ago

Hi there,

my kids enjoy using Unicode emojis for the Sonos zoneplayers. Here's an example of "Bad" (German word for bathroom).

Screenshot of Sonos App (Android):

signal-2022-02-25-145559_001

Screenshot of Noson:

Bildschirmfoto von 2022-02-25 14-56-11

Please add support for Unicode emojis.

Thank you so much!

hzulla commented 2 years ago

By the way, this is the emoji used in the screenshot:

https://emojipedia.org/person-taking-bath/

πŸ›€

janbar commented 2 years ago

The culprit isn't Noson. I tested by creating a new Playlist with the name '😁'. Capture d’écran du 2022-02-25 16-14-06 It works as well on Android 10 (my personal phone).

Therefore it could be your OS that does not support a recent utf8 charmap including emojis. That is a recent inclusion so what is your OS/version ?

Your can test it, typing printf "\xF0\x9F\x98\x81" in terminal.

hzulla commented 2 years ago

I'm running Ubuntu 20.10 with your Noson PPA.

Your can test it, typing printf "\xF0\x9F\x98\x81" in terminal.

Here's a screenshot from my terminal.

Bildschirmfoto von 2022-02-25 23-29-41

I tested by creating a new Playlist with the name '😁'.

Then try creating a new playlist with the name 'πŸ›€'.

Here's what happens on my Android Sonos app.

signal-2022-02-25-231811_001

And here's noson on Ubuntu 20.10.

Bildschirmfoto von 2022-02-25 22-48-59

hzulla commented 2 years ago

Okay, seems to be a bug in Qt's default font configuration. If you look for Qt and emoji bugs, there seem to be a lot of applications affected by this.

https://bugreports.qt.io/browse/QTBUG-85744

jon4hz commented 2 years ago

I'm experiencing the same issue. Must this be fixed in the app or in some system settings? Sorry if this is a silly question, I'm very unfamiliar with Qt..

janbar commented 2 years ago

It must be fixed by Qt framework libs used by the app.

jon4hz commented 2 years ago

I see, thanks for the reply :+1:

hzulla commented 1 year ago

noson-bad

I have updated my Ubuntu installation and moved to mostly using flatpak apps. Wanted to come back to this issue and report that the Unicode now shows fine when using the flatpak version of Noson.

hzulla commented 1 year ago

(Please ignore the mention to bug 5075 of flatpak, that was a mistake.)

hzulla commented 1 year ago

Think this can be closed now. I'm seeing all the Unicode emojis my kids use for their players in Noson. Thanks for the application!