Spurious characters in Begin/End hook dropdown lists
OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.0.0, revision: 26ad655
See attached score. Click on the text-line in measure 5. Look at the drop-down lists in "Begin hook" and "End hook." E.g.
There is a spurious character before each degree symbol.
Comments
Got to be something in the text line inspector.
These menus get populated in ...mscore/inspector/inspectorTextLineBase.cpp, lines 28-30
I do not see an attached score, but I tested it with a pedal marking added to a new score. It looks fine in macOS, but I get your same incorrect result in Windows.
In reply to I do not see an attached… by mattmcclinch
Related to #276354: Special character do not display properly?
Oops. Forgot to post the score.
Got to be a different issue anyway, not related to translatable strings
Add "Staff type change" text to the score. The extra characters are also present in the dropdown list of "Notehead scheme" in the Inspector.
That indeed is more likely the same underlying problem, something about Unicode/UTF8 in translatable text from .cpp files, might well be a Qt bug.
ISTR we had to use different means to encode those in the past too and I just found out (again) how to, PR to follow.
See https://github.com/musescore/MuseScore/pull/3987
Fixed in branch master, commit 6d7667def3
fix #276425: Spurious characters in Begin/End hook's dropdown
and Staff text change text's Notehead scheme drop down
Fixed in branch master, commit a9cdb6195f
Merge pull request #3987 from Jojo-Schmitz/unicode-in-translatable-text-in-cpp-code
fix #276425: Spurious characters in Begin/End hook's dropdown
Automatically closed -- issue fixed for 2 weeks with no activity.