summaryrefslogtreecommitdiff
path: root/gstudio/methods.py
diff options
context:
space:
mode:
authorKabir Kukreti <kabir@gnowledge.org>2012-09-04 23:46:35 +0530
committerKabir Kukreti <kabir@gnowledge.org>2012-09-04 23:46:35 +0530
commit975e4380ea41eb151f5488da436e28c7b1d1082a (patch)
tree49c85045d5bbf5489ffed493d75f060c31de7f5a /gstudio/methods.py
parent85f7d716309b79fb1f46dc887897a127017841cb (diff)
downloadgnowsys-975e4380ea41eb151f5488da436e28c7b1d1082a.tar.gz
Unicode error solved and unicode support added
Diffstat (limited to 'gstudio/methods.py')
-rw-r--r--gstudio/methods.py4
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()