Skip to content

Invalid character #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AlexisTM opened this issue Feb 1, 2018 · 2 comments
Closed

Invalid character #42

AlexisTM opened this issue Feb 1, 2018 · 2 comments

Comments

@AlexisTM
Copy link

AlexisTM commented Feb 1, 2018

SyntaxError: Non-ASCII character '\xc2' in file pypozyx/structures/sensor_data.py on line 156, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

return "{self.value} °C"

The "°" is not a ASCII character.

This is bugging on Python 2.7.12 (default, Dec 4 2017, 14:50:18) arm version.

@AlexisTM
Copy link
Author

AlexisTM commented Feb 1, 2018

Adding # -*- coding: utf-8 -*- on the second line of each file should solve the issue.

@laurentva
Copy link
Collaborator

Hey Alexis, didn't know I'd make it Python 2 incompatible. Thanks for pointing this out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants