0

問題があります - Web サービスを使用して情報を で表示していますTextViewが、多くのテキストには "Ž" のような単語があり、デバイスで表示すると、その文字は "?" のように表示されます。この「Ž」を別の文字に変更して正しく表示する方法を知りたいです。

これが私のメインです:

TextView text1=(TextView)vi.findViewById(R.id.textView1);  
TextView text2=(TextView)vi.findViewById(R.id.textNom);
TextView text3=(TextView)vi.findViewById(R.id.textPost);
TextView text4=(TextView)vi.findViewById(R.id.textDdn);

text1.setText(players.getNm()); 
text2.setText(Html.fromHtml( players.getNom()).toString());
text3.setText(Html.fromHtml( layers.getPost()).toString());
text4.setText(players.getDdn());

そして、これは私のxmlファイルです:

<TextView
    android:id="@+id/textPost"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignLeft="@+id/textDdn"
    android:layout_below="@+id/textDdn"
    android:layout_centerInParent="true"
    android:ellipsize="end"
    android:text="Wydad_Test"
    android:textColor="#000" />

<TextView
    android:id="@+id/textNom"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@+id/imageView1"
    android:layout_centerHorizontal="true"
    android:layout_marginTop="28dp"
    android:text="Wydad_Test"
    android:textColor="#000"
    android:textStyle="bold" />

<TextView
    android:id="@+id/textView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignBottom="@+id/textPost"
    android:layout_alignLeft="@+id/imageView1"
    android:layout_alignTop="@+id/textNom"
    android:layout_marginLeft="30dp"
    android:layout_marginRight="26dp"
    android:layout_toLeftOf="@+id/textDdn"
    android:gravity="center"
    android:text="Wydad_Test"
    android:textColor="#000"
    android:textSize="30dp"
    android:textStyle="bold" />
4

0 に答える 0