I made this very simple script to test in on browser. setdefaultlanguage was already utf-8
import sys
sys.getdefaultencoding()
f = 'ฟ'
print "Content-Type: text/plain;charset=utf-8"
print f`
The moment I added f = 'some asian text' I always get an error page with IIS - 502 web server received an invalid response. However, the code itself executes and prints the character just fine if I open it with Python IDLE.
Any help greatly appreciate. Thanks!
Additional information: The script is run on Windows Server 2008 R2, IIS 7.5 and WSGI I believe.