What is that character supposed to be?
According to the Wikipedia page on CP1252, 0x81 is an unused character position. There is a mention that it might map to some ISO-2022 control code with no unicode equivalent.
I'm not sure where the error message is coming from, though -- if it was in the python layer, you would see something like:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 0: character maps to <undefined>
Possibly the postgresql interface is trying to convert it to UTF8 for transfer, and failing, or maybe the psycopg2 layer can't decode it. Is there any other info you can provide about the error message?
It may end up that you just have to clean the data in the database to be able to use it.
Ian
--
Regards,
Ian Clelland
<
clel...@gmail.com>