I have searched for a solution online but this question is different, since I don't want to remove all non-ASCII chars, just a specific part of them.
I have a line that looks like that:
"[x+]4 gur Id lú gal sik-kát ⌈ x x ⌉ [……………]"
I want to remove only these chars:
'…' , '⌉' , '⌈'
The text is from here.
I tried to solve it using replace
but whenever I write one of these non-ASCII chars I'm getting the following error line:
SyntaxError: Non-ASCII character '\xe2' in file C:/-------.py on line --, but no encoding declared;
Thanks in advance.