Changeset 1790 for pykota/trunk/bin
- Timestamp:
- 10/07/04 23:14:28 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/dumpykota
r1789 r1790 24 24 # 25 25 # $Log$ 26 # Revision 1.12 2004/10/07 21:14:28 jalet 27 # Hopefully final fix for data encoding to and from the database 28 # 26 29 # Revision 1.11 2004/10/07 14:35:40 jalet 27 30 # Now edpykota refuses to launch if the user is not a PyKota administrator. … … 234 237 x.entry() 235 238 for i in range(len(entry)) : 236 value = entry[i] 237 strvalue = unicode(str(value), self.getCharset()).encode("UTF-8") 238 x.attribute(strvalue, type=type(value).__name__, name=headers[i]) 239 value = str(entry[i]) 240 try : 241 value = unicode(value, self.getCharset()).encode("UTF-8") 242 except UnicodeError : 243 pass 244 x.attribute(value, type=type(value).__name__, name=headers[i]) 239 245 x._pop() 240 246 x._output(self.outfile)