Closed kimmanlui closed 6 years ago
I solved by myself. Here is a solution.
[1] add mysql_setcharset('utf8');
[2] $data['rows']["".$key][$col] = utf8encode($cell);
is changed to $data['rows']["".$key][$col] = $cell;
[3] json_encode($this->data) is changed to
echo json_encode($this->data, JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
Does it support Chinese? I tried it but it did not work.