Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I cannot reproduce the error with</p> <pre><code>&lt;?php ini_set('default_mimetype', 'text/html'); ini_set('default_charset', 'utf-8'); echo 'phpversion: ', phpversion(), "&lt;br /&gt;\n"; $mysqli = connect(); echo 'mysqli server version: ', mysqli_get_server_version($mysqli), "&lt;br /&gt;\n"; echo 'mysqli client version: ', mysqli_get_client_version($mysqli), "&lt;br /&gt;\n"; echo 'mysqli proto info: ', mysqli_get_proto_info($mysqli), "&lt;br /&gt;\n"; echo '&lt;pre&gt;mysqli charset: '; var_dump(mysqli_get_charset($mysqli)); echo "&lt;/pre&gt;\n"; setup($mysqli); $result = mysqli_query($mysqli, 'SELECT x FROM foo') or die(__LINE__.mysqli_error($mysqli)); while ( $row=mysqli_fetch_assoc($result) ) { echo '&lt;pre&gt;', $row['x'], "&lt;pre&gt;\n"; } function connect() { $mysqli = mysqli_connect('localhost', 'localonly', 'localonly', 'test') or die(__LINE__.mysqli_connect_error()); mysqli_set_charset($mysqli, 'utf8') or die(__LINE__.mysqli_error($mysqli)); return $mysqli; } function setup($mysqli) { mysqli_query($mysqli, 'CREATE TEMPORARY TABLE foo (id int auto_increment, x varchar(32), primary key(id))') or die(__LINE__.mysqli_error($mysqli)); $v = chr(0xC3). chr(0x91); mysqli_query($mysqli, "INSERT INTO foo (x) VALUES ('abc'),('$v')") or die(__LINE__.mysqli_error($mysqli)); } </code></pre> <p>which prints on my computer</p> <pre><code>phpversion: 5.3.5 mysqli server version: 50508 mysqli client version: 50007 mysqli proto info: 10 mysqli charset: object(stdClass)[2] public 'charset' =&gt; string 'utf8' (length=4) public 'collation' =&gt; string 'utf8_general_ci' (length=15) public 'dir' =&gt; string '' (length=0) public 'min_length' =&gt; int 1 public 'max_length' =&gt; int 3 public 'number' =&gt; int 33 public 'state' =&gt; int 1 public 'comment' =&gt; string 'UTF-8 Unicode' (length=13) abc Ñ </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload