Skip to content

Adding map from TMX with Unicode symbols in filename fails #312

@Chris92de

Description

@Chris92de

Describe the bug
Adding map from TMX with Unicode symbols in filename fails

Expected behavior
It should work.

To Reproduce
Please explain what led to the issue.
Example:

  1. Try executing //add 273826
  2. Click on Add
  3. See error

Screenshots/Logs

[16:19:23] MxDownload::downloadMapAndGetFilename(): Request 273826 finished.

[16:19:23] MxDownload::downloadMapAndGetFilename(): Saving map as /server/UserData/Maps/MX/273826_Slay3r_ft_?ain.Map.Gbx

[16:19:23] MxDownload::addMap(): {"TrackID":273826,"Name":"Slay3r ft \u01a4ain","UserID":54153,"Username":"jorsh","MapType":"TM_Race","Length":2,"Type":0,"Environment":1,"Vehicle":1,"VehicleName":"CarSport","Mood":"Day","GbxMapName":"\ufeffSlay3r ft \u01a4ain","AuthorLogin":"OWcTuvl3TqOCvBD3GMnJng","DisplayCost":14867,"ModName":null,"Lightmap":8,"ExeVersion":"3.3.0","ExeBuild":"2025-07-04_14_15","ParserVersion":3,"UnlimiterRequired":false,"Laps":1,"Routes":0,"AwardCount":5,"Difficulty":0,"CommentCount":0,"UploadedAt":"2025-10-25T17:51:24.059","UpdatedAt":"2025-10-25T17:51:24.059","ActivityAt":"2025-10-25T17:51:24.059","ReplayType":0,"ReplayWRID":null,"TrackValue":50000,"ReplayCount":0,"Comments":"[align=center]No cap and gown, I ain't go to class\r\nI'd rather die before I come in last[\/align]\r\n","TitlePack":"TMStadium","Unlisted":false,"Unreleased":false,"Downloadable":true,"HasGhostBlocks":true,"EmbeddedObjectsCount":87,"EmbeddedItemsSize":1791783,"SizeWarning":false,"StyleName":"FullSpeed","UserRecord":null,"ReplayWRUserID":null,"ReplayWRTime":null,"ReplayWRUsername":null,"MappackID":0,"AuthorCount":2,"ImageCount":0,"VideoCount":0,"HasThumbnail":true,"HasScreenshot":false,"TrackUID":"_VD4TwsmC32PnzChrN_ofOBMtB3","AuthorTime":43055,"Tags":"2","DifficultyName":"Beginner","RouteName":"Single","LengthName":"45 secs","TypeName":"Race","EnvironmentName":"Stadium","IsMP4":true}

[16:19:23] MxDownload::addMap(): {"CheckpointsPerLaps":-1,"NbLaps":0,"DisplayCost":-1,"LightmapVersion":-1,"AuthorTime":43055,"GoldTime":46000,"SilverTime":52000,"BronzeTime":65000,"IsValidated":false,"PasswordProtected":false,"MapStyle":"","MapType":"TrackMania\\TM_Race","Mod":"","Decoration":"","Environment":"Stadium","PlayerModel":"","MapUid":"_VD4TwsmC32PnzChrN_ofOBMtB3","Comment":"","TitleId":"","AuthorLogin":"OWcTuvl3TqOCvBD3GMnJng","Name":"Slay3r ft \u01a4ain","ClassName":"","ClassId":"","FileName":"MX\/273826_Slay3r_ft_?ain.Map.Gbx"}

[16:19:23] Log::errorWithCause(): Adding map to selection failed: Map unknown.

EvoSC (please complete the following information):

  • EvoSC-Version: 0.99.109
  • Game: TM2020

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions