fixes for unicode
diff --git a/public/server.py b/public/server.py
index 2b5e238..497346c 100755
--- a/public/server.py
+++ b/public/server.py
@@ -39,12 +39,14 @@
import webnotes.handler
import webnotes.auth
+from webnotes.utils import cstr
+
def init():
# make the form_dict
webnotes.form = cgi.FieldStorage(keep_blank_values=True)
for key in webnotes.form.keys():
- webnotes.form_dict[key] = webnotes.form.getvalue(key)
-
+ webnotes.form_dict[key] = cstr(webnotes.form.getvalue(key))
+
# init request
try:
webnotes.http_request = webnotes.auth.HTTPRequest()