Unicode error for Meraki python library in my code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2021 05:44 PM
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
- Labels:
-
Meraki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2021 01:48 PM
@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!
