-
CGI程序在游览器显示的时候,中文会出现乱码
解决办法:
在main函数中加上:printf(“Content-type: text/html;charset=utf-8\n\n”); -
html文件中文乱码问题
html需要设置编码格式
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
来源:CSDN
作者:Kj_SaKA
链接:https://blog.csdn.net/weixin_42889383/article/details/103793272