\n postDesc = postDesc.replace("\ufffd\ufffd", "\ufffd")\n
Works fine for what I want, but Python gives me a warning along the lines of:
sys:1: DeprecationWarning: Non-ASCII character '\\xc3' in file D:\\Python\\ltu-index.py on line 3112, but no encoding declared; see [link|http://www.python.org/peps/pep-0263.html|http://www.python.org/peps/pep-0263.html] for details
Ok, so it's just a warning, but kind of annoying. I can't make out anything useful from the PEP (though I'm not very patient in these matters).
So is there a way to get these characters with the 8th bit set to be accepted by the Python compiler sans the warning?