Environment:
- Lime: 8.2.2
- Haxe: 4.3.7
- OS: Windows 10
- System Encoding: Windows-1252
Issue:
When an asset filename contains Unicode characters (specifically em dash U+2014),
Lime generates corrupted ManifestResources.hx with replacement character (�).
The build will error with:
ERROR export/html5/haxe/ManifestResources.hx:1: character 1
1 | package;
| ^
| Malformed file. Source files must be encoded with UTF-8.
Reproduction:
- Create file: "assets/Test — File.docx" (with em dash)
- Run:
lime build html5 -debug
- Observe: ManifestResources.hx contains corrupted filename with �
- Build fails with "Malformed file. Source files must be encoded with UTF-8"
Expected:
Either properly encode Unicode OR sanitize filenames to ASCII-safe characters
Workaround:
Rename file to use ASCII hyphen: "Test - File.docx"