I am trying to split a string by '£'. I have tried the following:
example = "£2.99£14.99"
example.split("£")
and:
example = "£2.99£14.99"
example.split("£".encode("utf-8"))
and:
example = "£2.99£14.99"
example.split("£".encode("utf-8", "ignore"))
They all give the following error:
SyntaxError: Non-ASCII character '\xc2' in file example.py on line 38, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
I am not sure how to proceed. Can someone assist?