Unicode File Python Error in

19 July 2017 21:15
When I compile an application, the process fails due to a Unicode read error in I am running B4W 17.06.

I have also seen this behavior in 17.04, but I was waiting for 17.06 to test because Ivan suggested a fix for a related issue was coming in 17.06.

If anyone else is having this issue, change line 434 in
f = open(abs_path)
f = open(abs_path,encoding="UTF8")

per Ivan's suggestion in the other thread.

I am running Windows 10 and use Notepad++ as my text editor.

Here is the error message from python:

Traceback (most recent call last):
File "D:\blend4web_ce\scripts\", line 567, in
File "D:\blend4web_ce\scripts\", line 296, in run
append_externs_items(SRC_EXT_FILES, externs_js, externs_gen_file)
File "D:\blend4web_ce\scripts\", line 435, in append_externs_items
text =
File "C:\Program Files\Blender Foundation\Blender\2.78\python\lib\encodings\", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 1500: character maps to

20 July 2017 10:56
thanks, we've already found this bug due to the other bugreport: link. We've fixed it in the upcoming 17.08 version.
Blend4Web Team
Please register or log in to leave a reply.