PHP Socket programming time, error, error content garbled??

Source: Internet
Author: User
PHP socket programming, error message when errors are garbled:

来自客户端 PHP 的消息: hello boy错误等级:2错误消息:socket_write(): unable to write to socket [10057]: �����׽���û����Ӳ���(��ʹ��һ�� sendto ���÷�����ݱ��׽���ʱ)û���ṩ��ַ�����ͻ������ݵ�����û�б����ܡ� 错误文件:D:\web\frontToolLib\php\socket_server.php错误行数:88错误代码: 10057文字说明: 由于套接字没有连接并且(当使用一个 sendto 调用发送数据报套接字时)没有提供地址,发送或接收数据的请求没有被接受。

I try to switch the encoding (mb_convert_encoding) for Utf-8, GBK, gb2312, iso-8859-1 and so on can not let him display normally, how to display the error message normally??

Reply content:

PHP socket programming, error message when errors are garbled:

来自客户端 PHP 的消息: hello boy错误等级:2错误消息:socket_write(): unable to write to socket [10057]: �����׽���û����Ӳ���(��ʹ��һ�� sendto ���÷�����ݱ��׽���ʱ)û���ṩ��ַ�����ͻ������ݵ�����û�б����ܡ� 错误文件:D:\web\frontToolLib\php\socket_server.php错误行数:88错误代码: 10057文字说明: 由于套接字没有连接并且(当使用一个 sendto 调用发送数据报套接字时)没有提供地址,发送或接收数据的请求没有被接受。

I try to switch the encoding (mb_convert_encoding) for Utf-8, GBK, gb2312, iso-8859-1 and so on can not let him display normally, how to display the error message normally??

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.