export to WebGL failed

i have this error when i try to export to WebGL
I tried to reinstall unity and webgl, but it still failed
what should i do ?

Failed running “C:\Program Files\Unity2017\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\\python.exe” “C:\Program Files\Unity2017\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc” @“C:\Users\066C~1\DOCUME~1\NEWUNI~3\Assets..\Temp\emcc_arguments.resp”

stderr:ERROR:root:C:\Users\׳’׳‘׳¨׳™׳׳œ\Documents\New Unity Project 1\Temp\StagingArea\Data\Native\build.bc: No such file or directory (“C:\Users\׳’׳‘׳¨׳™׳׳œ\Documents\New Unity Project 1\Temp\StagingArea\Data\Native\build.bc” was expected to be an input file, based on the commandline arguments provided)

Exception: Failed building WebGL Player.
UnityEditor.WebGL.ProgramUtils.StartProgramChecked (System.Diagnostics.ProcessStartInfo p) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/ProgramUtils.cs:48)
UnityEditor.WebGL.WebGlBuildPostprocessor.EmscriptenLink (BuildPostProcessArgs args, Boolean wasmBuild, System.String sourceFiles, System.String sourceFilesHash) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:391)

UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83

The solution is here!

I’ve found a solution to this.

This is what is causing the problem:

...("C:\Users\׳’׳‘׳¨׳™׳׳œ\Documents\New Unity Project ...

Your username has characters that are not ascii or probably just not latin alphabet.

Would be great if someone can address this question to Unity dev team to add more recognizable characters or something like that.

Basicly i’ve created new User with name containing only latin letters and it worked.

I still have nothing in my export folder when try to make WebGL build

I have the same problem

How to change it to Latin symbols?

So it happened to me too. I fixed it by moving the whole project to the root of my drive (from “C:/Users/Samuel Olekšák/Unity…” to “C:/Unity…”) and built it from there and it worked.