From d69ab83ee5d528c2849660906e5ff43bda3046fd Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 11 Aug 2009 17:43:28 -0400 Subject: [PATCH] Fix encoding problem in the written Stars HHs. --- pyfpdb/HandHistoryConverter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index bcb523c9..ea43d635 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -62,7 +62,7 @@ class HandHistoryConverter(): if not os.path.isdir(out_dir) and out_dir != '': logging.info("Creatin directory '%s'" % out_dir) os.makedirs(out_dir) - self.out_fh = open(self.out_path, 'w') + self.out_fh = codecs.open(self.out_path, 'w', 'cp1252') self.sitename = sitename self.follow = follow