<% @ language = "python" codepage = "936"%>
<%
Str = u 'go'
Response.write (STR)
%>
The above code will prompt 500 errors when running.
After testing, if there is Chinese in the code, there will be an error.
It should be followed by:
<% @ language = "python" codepage = "936"%>
<%
Str = u '/ u53bb'
Response.write (STR)
%>
Test discovery, normal output Chinese characters "go"
It seems that the problem is not the incorrect of Python to process Chinese. It is wrong when IIS submits scripts to Pythoncom.
I feel that the configuration in some files in the directory of C: / Python24 / Lib / Site-packages / Win32Comext / AxScript is currently being found.