From 12e89306b5bccdef08aea2ea56101465ba4985fd Mon Sep 17 00:00:00 2001 From: steffen123 Date: Thu, 27 May 2010 22:01:17 +0200 Subject: [PATCH] dirty but working patch to make it load utf8 files (specifically, FTP) --- pyfpdb/HandHistoryConverter.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index 5b65b955..aedd2191 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -98,6 +98,13 @@ follow : whether to tail -f the input""" self.status = True self.parsedObjectType = "HH" #default behaviour : parsing HH files, can be "Summary" if the parsing encounters a Summary File + + found=False + for item in self.codepage: + if item=="utf-8": + found=True + if not found: + self.codepage.append("utf-8") if autostart: self.start()