HTML5 building problems

Hi… sorry once again to disturb you with this topic but I still haven’t been able to package for HTML5 or even launch it. This is end log I am getting. Is there any possible way I can handle this? Thank you!

LogPlayLevel: Project.CopyBuildToStagingDirectory: ********** STAGE COMMAND COMPLETED **********
LogPlayLevel: Project.Package: ********** PACKAGE COMMAND STARTED **********
LogPlayLevel: HTML5Platform.Package: Package C:\Users\Fernando\Documents\Unreal Projects\uberlandia\uberlandia.uproject
LogPlayLevel: HTML5Platform.Package: Setting Emscripten SDK for packaging…
LogPlayLevel: emcc ExitCode: 0
LogPlayLevel: CommandUtils.Run: Run: C:\Program Files\Epic Games\UE_4.14\Engine\Extras\ThirdPartyNotUE\emsdk\Win64\python\\python.exe “C:\Program Files\Epic Games\UE_4.14\Engine\Extras\ThirdPartyNotUE\emsdk\emscripten\incoming\tools\” “C:\Users\Fernando\Documents\Unreal Projects\uberlandia\Binaries\HTML5\” --preloa
d . --js-output=“C:\Users\Fernando\Documents\Unreal Projects\uberlandia\Binaries\HTML5\”
LogPlayLevel: python: Traceback (most recent call last):
LogPlayLevel: python: File “C:\Program Files\Epic Games\UE_4.14\Engine\Extras\ThirdPartyNotUE\emsdk\emscripten\incoming\tools\”, line 845, in
LogPlayLevel: python: ‘’’ % json.dumps(metadata))
LogPlayLevel: python: File “C:\Program Files\Epic Games\UE_4.14\Engine\Extras\ThirdPartyNotUE\emsdk\Win64\python\\lib\”, line 243, in dumps
LogPlayLevel: python: return _default_encoder.encode(obj)
LogPlayLevel: python: File “C:\Program Files\Epic Games\UE_4.14\Engine\Extras\ThirdPartyNotUE\emsdk\Win64\python\\lib\json\”, line 207, in encode
LogPlayLevel: python: chunks = self.iterencode(o, _one_shot=True)
LogPlayLevel: python: File “C:\Program Files\Epic Games\UE_4.14\Engine\Extras\ThirdPartyNotUE\emsdk\Win64\python\\lib\json\”, line 270, in iterencode
LogPlayLevel: python: return _iterencode(o, 0)
LogPlayLevel: python: UnicodeDecodeError: ‘utf8’ codec can’t decode byte 0xe2 in position 47: invalid continuation byte
LogPlayLevel: CommandUtils.Run: Run: Took 2.2205739s to run python.exe, ExitCode=1
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:1): C:\Program Files\Epic Games\UE_4.14\Engine\Extras\ThirdPartyNotUE\emsdk\Win64\python\\python.exe “C:\Program Files\Epic Games\UE_4.14\Engine\Extras\ThirdPartyNotUE\emsdk\emscripten\incoming\t
ools\” “C:\Users\Fernando\Documents\Unreal Projects\uberlandia\Binaries\HTML5\” --preload . --js-output=“C:\Users\Fernando\Documents\Unreal Projects\uberlandia\Binaries\HTML5\”. See logfile for details: ‘python-2017.02.22-12.56.08.txt’
LogPlayLevel: em AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback) LogPlayLevel: em AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
LogPlayLevel: em HTML5Platform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
LogPlayLevel: em Project.Package(ProjectParams Params, Int32 WorkingCL)
LogPlayLevel: em BuildCookRun.DoBuildCookRun(ProjectParams Params)
LogPlayLevel: em BuildCookRun.ExecuteBuild()
LogPlayLevel: em AutomationTool.BuildCommand.Execute()
LogPlayLevel: em AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands)
LogPlayLevel: em AutomationTool.Automation.Process(String[] Arguments)
LogPlayLevel: em AutomationTool.Program.MainProc(Object Param)
LogPlayLevel: em AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
LogPlayLevel: em AutomationTool.Program.Main()
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 20.764740
PackagingResults:Error: Error Launch failed! Unknown Error

I believe the issue here is that some of the content in the asset directories of the project contains UTF-8 characters that are outside the ASCII range. A list of 7 bit ASCII characters can be found e.g. at .

The bug is not in Unreal Engine 4, but looks like it’s in the underlying Emscripten compiler file packager that UE4 is using. Currently it does not support UTF-8 characters in filenames, but perhaps it might be easy to add such support. Try searching the project content filenames for characters that aren’t present in the above list, and try renaming them to only use the 7-bit ASCII range. If you can find which character the issue is, I can try if I’m able to fix up the file packager to resolve the issue.