如何将Tamil字体存储在mysql数据库中

时间:2018-06-01 09:00:11

标签: php mysql sql database mysqli

<?php 
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "test";
$conn = mysqli_connect($servername, $username, $password, $dbname);
$sql = "Insert into tbl (name) VALUES ('ஆன்லைனில்')";
$result = mysqli_query($conn, $sql);

但它的商店Db在        A®†A®©à¯à®²à¯à®©à®¿à®²à¯

3 个答案:

答案 0 :(得分:2)

更改列格式

ALTER `tbl` CHANGE `column_name` `column_name` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;

答案 1 :(得分:1)

ALTER TABLE samplesample_table CHARACTER SET = utf8;

答案 2 :(得分:-1)

launch.json