add unicode detection for txt format in upload
authorraph
Thu, 10 Dec 2009 18:03:50 +0100
changeset 50 6db6c011a310
parent 49 1b92513d7081
child 51 321f4057eb78
add unicode detection for txt format in upload
src/cm/converters/__init__.py
--- a/src/cm/converters/__init__.py	Thu Dec 10 17:05:54 2009 +0100
+++ b/src/cm/converters/__init__.py	Thu Dec 10 18:03:50 2009 +0100
@@ -40,7 +40,7 @@
                        'text/english',
                        'text/enriched'
                       ]:
-        converted_input = input
+        converted_input = to_unicode(input)
         
     ##############################
     # anything looks like code: put them into markdown citation