mochiweb返回结果指定UTF-8编码
程序员文章站
2022-07-15 22:01:56
...
201 Form = mochiweb_request:parse_qs(Req), %% 获取GET请求的参数 202 Server = get_bin(proplists:get_value("server", Form, "wx.com")), 203 [Version, Desc] = odbc_upload_apk:get_version(Server), 204 ?DEBUG("~p:~p Desc=~p", [?MODULE, ?LINE, Desc]), 214 Req:ok({_ContentType = "text/plain;charset=utf-8", [], <<Version/binary, <<"\n">>/binary, Desc/binary>>}); //返回结果指定UTF-8编码
上一篇: 几个Struts2所谓配备的Jar包
下一篇: Hadoop案例:数据压缩