Unpredictable unicode special characters in text on copy/paste
Reported version
3.5
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
duplicate
Regression
No
Workaround
No
Project
1) Create any kind of text area by selecting Toolbar -> Add -> Text -> (any option).
2) Open up the Special Characters panel and insert several characters under Mathematical Alphanumeric Symbols section.
3) Copy the special characters and paste into the same box. Musescore shows Hangul characters instead (For instance, 𝕗 U+1D557 turns into 핗 U+D557 predictably).
4) Backspace one of the special characters then undo (ctrl+z). The character transforms into anything between �, 🀀, and the default tofu block.
Comments
I can't reproduce. Windows 10, MuseScore 3.5.2
However, it is true that copy/paste does not do a great job with special characters in general. I've never seen this specific result, though, so we'd need more precise steps - including a sample score - to investigate further. That way we know exactly which fonts and characters are involved.
In reply to However, it is true that… by Marc Sabatella
I appreciate the quick response.
PC and MuseScore Details
OS: Windows 10 (10.0), Arch.: x86_64
MuseScore version (64-bit): 3.5.2.311459983
revision: 465e7b6
Steps to reproduce
1) Open broken_unicode_demo.mscz.
2) Double click the title block to edit.
3) Open the Special Characters panel using the button on the bottom left.
4) Go to Unicode Symbols -> Mathematical Alphanumeric Symbols.
5) Insert the first three characters on the list: 𝐀𝐁𝐂.
6) Copy the three characters in the text box and paste into the same box. The characters now transform into 퐀퐁퐂.
7) Delete the 𝐂, then hit ctrl+z. The character reappears as �. Exit the text box by clicking elsewhere. The � and the 퐀 characters combine into the ubiquitous question tofu block.
Files
broken_unicode_demo.mscz
OK, confirmed. As noted, copy/paste is known to not handle special characters well. It's possible this is a duplicate of #280504: Unicode surrogate-pair text cutting and pasting and undoing produces corruption but I don't know enough about thius to say for sure, so I'm leaving this open.
In reply to OK, confirmed. As noted,… by Marc Sabatella
Oops. I think this is a duplicate. This can be merged with the other issue. Thank you so much for your help.