小编Meh*_*zay的帖子

PHP JSON特殊字符

应该在我的手json类型中返回一些结果.但由于特殊字符,我无法输出.内容数组中的示例数据:

Alt nPortakal电影节soni land .

(问题:?)

$JSON["today"]=array();
for ($i=0; $i < count($olay_tarih); $i++) { 
    $gelen["date"] = array();
    $gelen["content"]=array();
    array_push($gelen["date"], $olay_date[$i]);
    array_push($gelen["content"], $olay_content[$i]);
    array_push($JSON["today"], $gelen);
}
echo json_encode($JSON);
Run Code Online (Sandbox Code Playgroud)

php encoding json

5
推荐指数
2
解决办法
1470
查看次数

我的列表视图没有显示最后一项

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="info.androidhive.materialtabs.fragments.OneFragment">

    <ListView
        android:id="@+id/olaylar_liste"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"></ListView>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

最后一项未显示.请帮忙.

android listview

5
推荐指数
2
解决办法
7176
查看次数

标签 统计

android ×1

encoding ×1

json ×1

listview ×1

php ×1