help please I cant find this error
Traceback (most recent call last):
File "C:/Users/umuti/PycharmProjects/Kritikenkesit/EnkesitHesapla.py", line 160, in <module>
color=3))
File "C:\Users\umuti\PycharmProjects\Kritikenkesit\venv\lib\site-packages\dxfwrite\engine.py", line 260, in text
return Text(text=text, insert=insert, height=height, **kwargs)
File "C:\Users\umuti\PycharmProjects\Kritikenkesit\venv\lib\site-packages\dxfwrite\entities.py", line 345, in __init__
super(Text, self).__init__(**default)
File "C:\Users\umuti\PycharmProjects\Kritikenkesit\venv\lib\site-packages\dxfwrite\entities.py", line 195, in __init__
self[key] = value
File "C:\Users\umuti\PycharmProjects\Kritikenkesit\venv\lib\site-packages\dxfwrite\entities.py", line 203, in __setitem__
self.attribs[key] = self._get_dxf_atom(key, value) # factory is called
File "C:\Users\umuti\PycharmProjects\Kritikenkesit\venv\lib\site-packages\dxfwrite\entities.py", line 220, in _get_dxf_atom
return attrib.factory(value, attrib.group_code)
File "C:\Users\umuti\PycharmProjects\Kritikenkesit\venv\lib\site-packages\dxfwrite\base.py", line 225, in __init__
super(DXFString, self).__init__(to_string(value), group_code)
File "C:\Users\umuti\PycharmProjects\Kritikenkesit\venv\lib\site-packages\dxfwrite\util.py", line 30, in to_string
return str(escaped_value.replace(b'\\u', b'\\U+'), 'utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 6: invalid start byte
Process finished with exit code 1
Please sign in to leave a comment.
This seems like a python error which is not related to IDE. Please try running your code from the system terminal (outside of IDE), using the same python interpreter and environment.
As for the error itself, here's a similar discussion which might help you: https://stackoverflow.com/questions/22216076/unicodedecodeerror-utf8-codec-cant-decode-byte-0xa5-in-position-0-invalid-s
Thanks.I am solved this problem.
This code
#-*-coding:utf-8-*-