--- ZSQLExtend/importFMPXML.py 2008/03/06 12:10:55 1.24 +++ ZSQLExtend/importFMPXML.py 2008/07/16 12:54:10 1.26 @@ -22,7 +22,7 @@ except: fm_ns = 'http://www.filemaker.com/fmpxmlresult' -version_string = "V0.6.1 ROC .2008" +version_string = "V0.6.1 ROC 2.7.2008" def unicodify(text, withNone=False): """decode str (utf-8 or latin-1 representation) into unicode object""" @@ -146,7 +146,7 @@ class xml_handler: # connect database self.dbCon = psycopg.connect(options.dsn) - logging.debug("DB encoding: %s"%self.dbCon.encoding) + logging.debug("DB encoding: %s"%getattr(self.dbCon, 'encoding', 'UNKNOWN')) self.db = self.dbCon.cursor() assert self.db, "AIIEE no db cursor for %s!!"%options.dsn