Skip to content

Asset pipeline corrupts Unicode characters in filenames during ManifestResources.hx generation #2006

@mcoughlin133

Description

@mcoughlin133

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:

  1. Create file: "assets/Test — File.docx" (with em dash)
  2. Run: lime build html5 -debug
  3. Observe: ManifestResources.hx contains corrupted filename with �
  4. 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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions