I get a UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f33b' in position 1689: character maps to <undefined> which I believe refers to the sunflower emoji in $wgEmergencyContact = "apache@🌻.invalid"; and $wgPasswordSender = "apache@🌻.invalid";
If so that would be an easy fix, just changing the template, assuming there are no errors later in the build.
Or a bit more in depth in mwdocker/docker.py at line 277 change env = Environment(loader=FileSystemLoader(template_dir)) to env = Environment(loader=FileSystemLoader(template_dir,encoding=locale.getpreferredencoding())), in my case that produces 'cp1252 for Windows and 'UTF-8' for Linux
When trying to build a semantic media wiki on Windows with the example command for version 4.1.2
I get a
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f33b' in position 1689: character maps to <undefined>
which I believe refers to the sunflower emoji in$wgEmergencyContact = "apache@🌻.invalid";
and$wgPasswordSender = "apache@🌻.invalid";
If so that would be an easy fix, just changing the template, assuming there are no errors later in the build. Or a bit more in depth inmwdocker/docker.py
at line 277 changeenv = Environment(loader=FileSystemLoader(template_dir))
toenv = Environment(loader=FileSystemLoader(template_dir,encoding=locale.getpreferredencoding()))
, in my case that produces'cp1252
for Windows and'UTF-8'
for Linux