https://autohotkey.com/board/topic/33020-sparrow-ahk-webserver-w-ahk-in-html-support-sources-incl/
sparrow-ahk-webserver-w-ahk-in-html
https://github.com/Skiouros/AHKhttp/blob/master/documentation.md
Basic HTTP Server written in AutoHotkey
中文支持需要增加
ml; charset=utf-8"
也可以在 html 代码中指定。直接这样即可:
res.SetBodyText("<meta charset='UTF-8'>测试")
加上 head 标签好一点
res.SetBodyText("<head><meta charset='UTF-8'></head>测试123456")
(by tmplinshi(1316882711)
修改 AHKhttp 文件,使用 CP0 编码来设置响应头字符。