Phpsocket programming. When an error occurs, the error message is garbled: {code ...} I tried to switch the encoding (mb_convert_encoding) to UTF-8, gbk, gb2312, ISO-8859-1 and so on can not make him display normally, how can I display the error message normally ?? Php socket programming. When an error occurs, the error message is garbled:
Messages from the PHP client: hello boy error level: 2 error message: socket_write (): unable to write to socket [10057]: fig fig others) �������������������������������������� wrong File: D: \ web \ frontToolLib \ php \ socket_server.php error row: 88 error code: 10057 text description: The address is not provided because the socket is not connected and (when a sendto call sends a datagram socket, the request for sending or receiving data is not accepted.
I tried to switch the encoding (mb_convert_encoding) to UTF-8, gbk, gb2312, ISO-8859-1 and so on can not make him display normally, how can I display the error message normally ??
Reply content:
Php socket programming. When an error occurs, the error message is garbled:
Messages from the PHP client: hello boy error level: 2 error message: socket_write (): unable to write to socket [10057]: fig fig others) �������������������������������������� wrong File: D: \ web \ frontToolLib \ php \ socket_server.php error row: 88 error code: 10057 text description: The address is not provided because the socket is not connected and (when a sendto call sends a datagram socket, the request for sending or receiving data is not accepted.
I tried to switch the encoding (mb_convert_encoding) to UTF-8, gbk, gb2312, ISO-8859-1 and so on can not make him display normally, how can I display the error message normally ??