导读:用 Android 的 TextView 显示内容,是unicode编码转ascll码 (American Standard Code for Information Interchange,美国标准信息交换码), 如果内容是形如:#25105;#21999; 这样的东西,就不会......
用 Android 的 TextView 显示内容,是unicode编码转ascll码 (American Standard Code for Information Interchange,美国标准信息交换码), 如果内容是形如: 这样的东西,就不会显示出其对应的中文信息,解决的办法是:
import android.text.Html;
mTextView.setText(Html.fromHtml(""));
搞定。
其他的控件也是一样的做法,例如 EditText 编辑控件