fyne-io / fyne

Cross platform GUI toolkit in Go inspired by Material Design
https://fyne.io/
Other
25.28k stars 1.4k forks source link

UTF-8 Characters are not displayed correctly on the ubuntu's "all windows" section #5046

Open varunsharma0286 opened 4 months ago

varunsharma0286 commented 4 months ago

Checklist

Describe the bug

In the snapshot pasted below, we can see that the app's title bar is showing the correct string with UTF-8 characters. But in the all windows summary, the title shown is incorrect. As per my understanding, these 2 should be same.

How to reproduce

  1. Create an app with a tile having utf-8 characters.
  2. Open the app. The app will have the title populated as expected.
  3. While the app is open, hover the cursor on the "all windows" option as shown in the screenshot above. The title displayed there is not showing the characters correctly.

Screenshots

TitleBarSnapshot

Example code

fyneApp := app.NewWithID("TestApp")
winName := "Title \u00A9 Bar Message \u00A9"
window := fyneApp.NewWindow(winName)

Fyne version

2.5.0

Go compiler version

1.22.5

Operating system and version

Ubuntu 24.04 LTS

Additional Information

No response

andydotxyz commented 4 months ago

Pretty sure this is a duplicate of #659 and #3876. Unless anyone can point to a source of data that we are outputting incorrectly it seems to be a bug in the string parsing of Gnome.

If you have more information that shows the error is at our end please do add - but our title bars and desktop file metadata are correctly utf-8 encoded in my testing.