Changeset 3246 for pykota/trunk
- Timestamp:
- 09/04/07 17:55:45 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r3188 r3246 50 50 def detectCharset(text) : 51 51 """Uses the chardet module to workaround CUPS lying to us.""" 52 return chardet.detect(text)["encoding"] 52 return chardet.detect(text)["encoding"] or "UTF-8" 53 53 54 54 from pykota import config, storage, logger