diff options
author | gnowgi <nagarjun@gnowledge.org> | 2012-09-04 19:18:43 -0700 |
---|---|---|
committer | gnowgi <nagarjun@gnowledge.org> | 2012-09-04 19:18:43 -0700 |
commit | cad11e2f7ed848cdfd7779451bb0f4f931e062c3 (patch) | |
tree | 49c85045d5bbf5489ffed493d75f060c31de7f5a /gstudio/methods.py | |
parent | 85f7d716309b79fb1f46dc887897a127017841cb (diff) | |
parent | 975e4380ea41eb151f5488da436e28c7b1d1082a (diff) | |
download | gnowsys-cad11e2f7ed848cdfd7779451bb0f4f931e062c3.tar.gz |
Merge pull request #84 from kabirkukreti/master
Unicode error solved and unicode support added
Diffstat (limited to 'gstudio/methods.py')
-rw-r--r-- | gstudio/methods.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gstudio/methods.py b/gstudio/methods.py index ad4bcee..bdcc5ad 100644 --- a/gstudio/methods.py +++ b/gstudio/methods.py @@ -202,7 +202,9 @@ def create_wikipage(title,idusr,content_org): sys = System() sys.title = title sys.status = 2 - sys.content_org= content_org + contorg = unicode(content_org) + sys.content_org = contorg.encode('utf8') + myfile = open('/tmp/file.org', 'w') myfile.write(sys.content_org) myfile.close() |