有这样的代码
$mysqli = new mysqli("example.com", "user", "password", "database");
它访问一个不存在的服务器,结果在浏览器中显示:
警告:mysqli::__construct(): (HY000/2002): ������ ���������� ���������� ��� ������ ……………………………………………………………………………………………………………………………………………………………………………………………… �� ������ �������� �� �������� ���� �� ������ ���� ������ �, ���������������������������������� ���������� ��-�� �� �� ������������������������������������。在第 11 行的 C:\OSPanel\domains\mysite.local\index.php
为什么会发生这种情况,如何修复编码。
已经回答了https://ru.stackoverflow.com/a/829509/247107