[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7217 - trunk/gnue-reports/src/adapters/destinations/printer
From: |
btami |
Subject: |
[gnue] r7217 - trunk/gnue-reports/src/adapters/destinations/printer |
Date: |
Thu, 17 Mar 2005 15:37:17 -0600 (CST) |
Author: btami
Date: 2005-03-17 15:37:16 -0600 (Thu, 17 Mar 2005)
New Revision: 7217
Modified:
trunk/gnue-reports/src/adapters/destinations/printer/gdi.py
Log:
added textEncoding
Modified: trunk/gnue-reports/src/adapters/destinations/printer/gdi.py
===================================================================
--- trunk/gnue-reports/src/adapters/destinations/printer/gdi.py 2005-03-17
21:32:05 UTC (rev 7216)
+++ trunk/gnue-reports/src/adapters/destinations/printer/gdi.py 2005-03-17
21:37:16 UTC (rev 7217)
@@ -156,7 +156,7 @@
w = self.metrics['width']
self.dc.TextOut(int(w * int(self._attrs['x'])),
int( - h * 1.3 * int(self._attrs['y'])),
- self._text)
+ self._text.encode(_encoding, 'replace'))
def setup(self, printer):
self.dc = win32ui.CreateDC()
@@ -193,3 +193,5 @@
return fonts
FONTS = createFonts()
+
+_encoding = gConfig('textEncoding')
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7217 - trunk/gnue-reports/src/adapters/destinations/printer,
btami <=