在 JSON 中显示 UNICODE 字符
我想显示阿姆哈拉语字符是 utf-8 字符在 ListView在我的 android 应用程序,但看来是一连串的问号???这是 json的输出是什么样子 ︰
ItemID_AM是存储阿姆哈拉语字符,我数据库中的字段名称和我的数据库,它清楚地显示的阿姆哈拉语字符。哪些是 Phonetic UNICODE.
这里是 mydatabase
在这里是我的 getAllData.php
<?php $host = "localhost"; // host of MySQL server $user = "root"; // MySQL user $pwd = ""; // MySQL user's password $db = "mydatabase"; // database name header('content-type: application/json; charset=utf-8'); // Create connection $con = mysqli_connect($host, $user, $pwd, $db); // Check connection if(mysqli_connect_errno($con)) { die("Failed to connect to MySQL: " . mysqli_connect_error()); } // query the application data $sql = "SELECT * FROM images2 WHERE 1 "; $result = mysqli_query($con, $sql); // an array to save the application data $rows = array(); // iterate to query result and add every rows into array while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { $rows[] = $row; } // close the database connection mysqli_close($con); // echo the application data in json format echo json_encode($rows); ?>我已经习惯 ︰但没有什么变化。可以有人 F1 请请请?
显示/隐藏原文
I'm trying to display Amharic characters which are utf-8 character in a ListView in my android app, but what appears is series of question marks ????? This is what the json output looks like:
ItemID_AM is a field name in my database which stores the Amharic characters, and in my db it clearly displays the Amharic characters. Which are Phonetic UNICODE.
在 JSON 中显示 UNICODE 字符:https://www.2ndflr.com/dm/aisaiebiya/amuhala/949385.html相关问答
- 2018-02-27温哥华现美制1947年地图 显示南海属
- 2017-10-26显示桌面图标不见了
- 2017-10-22ip显示庆阳118.182是在哪里
- 2017-10-08坚持补碘!监测显示石家庄属于外
更多相关阿姆哈拉属于哪,请关注云南地方旅游网:https://www.2ndflr.com