Changeset 3324 for pykota/trunk/pykota/tool.py
- Timestamp:
- 02/02/08 18:56:16 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r3317 r3324 149 149 arguments = " ".join(['"%s"' % arg for arg in sys.argv]) 150 150 self.logdebug("Command line arguments : %s" % arguments) 151 152 def UTF8ToUserCharset(self, text) :153 """Converts from UTF-8 to user's charset."""154 if text is None :155 return None156 else :157 return text.decode("UTF-8", "replace").encode(self.charset, "replace")158 159 def userCharsetToUTF8(self, text) :160 """Converts from user's charset to UTF-8."""161 if text is None :162 return None163 else :164 return text.decode(self.charset, "replace").encode("UTF-8", "replace")165 151 166 152 def display(self, message) :