修改
private function generate($headers, $data) { $this->set_headers(); $data = "\xFF\xFE" .mb_convert_encoding($data,"GBK");//转换为GBK。解决乱码问题。 echo "$headers\n$data"; }
Powered by: 博客园 Copyright © 2024 madduck Powered by .NET 9.0 on Kubernetes