Changeset 1791 for pykota/trunk/pykota/storage.py
- Timestamp:
- 10/08/04 22:19:18 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
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