I just started a blog and I use the SyntaxHighlighter Evolved Wordpress plugin to highlight the syntax of my snippets.
I just finished writing a Pythonic post and wanted to check out my code snippets before posting.
If you double-click the code inside my snippets, the plugin will stop highlighting the code, allowing you to select it as plain text. However, if I copy and paste Python code from my snippets, it includes \xc2
or
chracters in. This leads to what Python says about coding:
SyntaxError: non-ASCII character '\ xc2' in ex2.py on line 3, but no encoding declared; See http://www.python.org/peps/pep-0263.html for more details.
I donβt really want to declare encodings for every single Python fragment that I write - and I donβt even know if this will solve the problem.
The best solution, of course, would be to force my plugin not to use
in the text version. Or that?
Does anyone have any ideas on how I can get around this problem?
source share