一个http请求 以post的方式访问192.168.1.123:8001/test.phptest.php文件中
获取post的内容后 如果给对方返回包@header('Content-type: text/html; charset=UTF-8');
$arr = 返回包内容
echo $arr;这样对吗
获取post的内容后 如果给对方返回包@header('Content-type: text/html; charset=UTF-8');
$arr = 返回包内容
echo $arr;这样对吗
你怎么就知道 192.168.1.123:8001/test.php 返回的是 utf-8 编码?
header('Content-type: text/html; charset=UTF-8'); 这个语句是写在test.php中的
这样返回给http的包不就是UTF-8了吗
$arr=json格式的字符串
@header('Content-type: text/html; charset=UTF-8');
echo $arr这样返回有问题吗
$arr=json格式的字符串
@header('Content-type: text/html; charset=UTF-8');
echo $arr这样返回有问题吗
我没做过带head的,直接返回去就行了