I suggest you always use UTF-8, not windows-1256.

However, if you insist on using windows-1256, you should encode your unicode
output to str:
self.response.out.write(u'some unicode string'.*encode*('windows-1256'))
or:
self.response.out.write('some windows-1256 string') # don't decode it

----------
keakon

My blog(Chinese): www.keakon.net
Blog source code: https://bitbucket.org/keakon/doodle/

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to