Changeset 1791 for pykota/trunk
- Timestamp:
- 10/08/04 22:19:18 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/NEWS
r1790 r1791 22 22 PyKota NEWS : 23 23 24 - 1.20alpha23 : 25 26 - Add workaround for locale problem. 27 24 28 - 1.20alpha22 : 25 29 -
pykota/trunk/pykota/storage.py
r1790 r1791 22 22 # 23 23 # $Log$ 24 # Revision 1.64 2004/10/08 20:19:18 jalet 25 # Added ugly workaround for strange locale problem 26 # 24 27 # Revision 1.63 2004/10/07 21:14:28 jalet 25 28 # Hopefully final fix for data encoding to and from the database … … 694 697 return unicode(text, "UTF-8").encode(self.tool.getCharset()) 695 698 except UnicodeError : 696 pass 699 try : 700 # Incorrect locale settings ? 701 return unicode(text, "UTF-8").encode("ISO-8859-15") 702 except UnicodeError : 703 pass 697 704 return text 698 705 … … 703 710 return unicode(text, self.tool.getCharset()).encode("UTF-8") 704 711 except UnicodeError : 705 pass 712 try : 713 # Incorrect locale settings ? 714 return unicode(text, "ISO-8859-15").encode("UTF-8") 715 except UnicodeError : 716 pass 706 717 return text 707 718 -
pykota/trunk/pykota/version.py
r1788 r1791 22 22 # 23 23 24 __version__ = "1.20alpha2 2_unofficial"24 __version__ = "1.20alpha23_unofficial" 25 25 26 26 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""