Unexpected UTF-8 BOM
Issue #886
resolved
Hello,
Encountered codec issue when importing pose:
ERROR:
JSON error while reading ascii file
"C:\DAZ\Daz3DLibrary\Pose.duf"
Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)
For details see
'C:\Users\user\Documents\daz_importer_errors.txt'
TRACEBACK:
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Diffeomorphic-import-daz-dev\error.py", line 208, in execute
self.run(context)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Diffeomorphic-import-daz-dev\animation.py", line 1279, in run
StandardAnimation.run(self, context)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Diffeomorphic-import-daz-dev\animation.py", line 989, in run
self.loadAnimation(context)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Diffeomorphic-import-daz-dev\animation.py", line 1039, in loadAnimation
offset,prop = self.getSingleAnimation(filepath, context, offset)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Diffeomorphic-import-daz-dev\animation.py", line 499, in getSingleAnimation
struct = loadJson(filepath, False)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Diffeomorphic-import-daz-dev\load_json.py", line 92, in loadJson
reportError(msg, trigger=(1,2))
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\Diffeomorphic-import-daz-dev\error.py", line 93, in reportError
raise DazError(msg)
Thanks in advance for taking a look into it.
Best regards.
Comments (2)
-
repo owner -
- changed status to resolved
- Log in to comment
It sounds like the file is corrupt. A duf file is either an ascii file, or a gzipped ascii file. Here the plugin has failed to unzip the file, but it doesn’t seem to be an ascii file either, since the very first character is illegal.
With Utilities > Decode File you can manually unzip the file to pose.duf.txt. If the file is not a gzip file there is an error message.
You can then open the file in a text editor (either pose.duf or pose.duf.txt) to see if the first character is.