Bugzilla – Bug 1752
Windows: Saved project will not open if AUP contains supplementary characters.
Last modified: 2018-08-20 11:51:26 UTC
If a project contains supplementary characters (for example, one or more emoji characters in a track name, label text or metadata), when saved (Windows only), the character is converted to a surrogate pair, which is illegal in XML 1.0. Example: The attached project contains the tag: <tag name="TITLE" value="asdf 🎧 asdf"/> where 🎧 is a 5 digit HTML entity (hex) for Unicode character U+1F3A7 (headphone symbol). When the project is saved (on Windows), Audacity converts this character to the surrogate pair: "��" The saved project will now not open (any OS) and will return an error in the form: "Error: reference to invalid character number at line ..." Ref: https://msdn.microsoft.com/en-us/library/ew7hbz7k(VS.71).aspx https://en.wikipedia.org/wiki/Valid_characters_in_XML
This proposed fix (pull request) appears to remedy the problem: https://github.com/audacity/audacity/pull/197 Some additional discussion and clarification about the proposed fix here: https://forum.audacityteam.org/viewtopic.php?p=334421#p334421
Another example project: https://forum.audacityteam.org/viewtopic.php?p=334627#p334627 and the problem line is: <import filename="(FREE) XXXTENTACION Type Beat - �� 17 ALBUM I Free Type Beat I RapTrap Instrumental.ogg" offset="0.00000000" mute="0" solo="0" height="150" minimized="0" gain="0.794328" pan="0.0"/>
Fixed at https://github.com/audacity/audacity/commit/26a6815db
Testing in 2.2.1 RC1 Testing on both projects that Steve referenes in a) Comment #1 b) Comment #2 This look to be working properly now - I confirmed that the same projects and steps did not work on 2.2.0