Compiling Errors :Unhandled Exception: System.ArgumentException: Path fragment '"Content/ani/tiechang/2/Materials/Master/\346\260\264s.uasset"' contains invalid directory separators.

Because Artist submitted a Chinese resource called “水s.uasset”, the initial packaging was normal, and then I added some C++code to compile it, which resulted in compilation errors. Unhandled Exception: System.ArgumentException: Path fragment ‘“Content/ani/tiechang/2/Materials/Master/\346\260\264s.uasset”’ contains invalid directory separators.'. Uaset contains invalid directory delimiter. Changing the resource name to English again does not solve the problem. Deleting uaset resources and deleting CachedAssetRegistry.bin in the intermediate directory cannot solve this problem. UE4/5 has encountered this issue. Has anyone encountered it before? Or could you help answer it?

Git changed list filename contain Chinese character. After commit it you will can compile.

1 Like

run the below line in cmd.
git config --global core.quotepath false

1 Like

Thank you, you saved my time.