Problems encountered when writing ASP scripts with Python, initial solutions, is currently looking for better solutions.

xiaoxiao2021-03-06  14

<% @ 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.

转载请注明原文地址:https://www.9cbs.com/read-49813.html

New Post(0)