cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
984
Views
0
Helpful
1
Replies

Unicode error for Meraki python library in my code

bluedot_worker
Level 1
Level 1

I`m having problems when running my code in visual studio code because it sends me an error like this:

 

File "/usr/local/lib/python3.8/dist-packages/meraki/api/wireless.py", line 1098
"""
^
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0x92 in position 8689: invalid start byte

 

I already changed the character encoding from utf-8 to ISO 8859-1 (what I found on internet that could solve the problem) but I`m still receiving this error.

Is this a typical syntax error for meraki python library?

How can I solve this problem, which encoding should I use?

 

Thank you for your help.

I`m new to this coding environments hope you can help me

1 Reply 1

Alex Stevenson
Cisco Employee
Cisco Employee

@bluedot_worker, have you tried adding one of these:

 

#!/usr/bin/env python3
#coding: utf-8
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

Please refer to the Python docs for more. Here's the section for Python 2.7: https://docs.python.org/2.7/tutorial/interpreter.html#source-code-encoding 

 

Hope this helps!