How can I use Turkish characters like 'ş ç ı ö' in an Android TextView?

前端 未结 3 1792
太阳男子
太阳男子 2021-02-06 18:03

I want to write \'ile\' in android TextView but it isn\'t drawn correctly. How can use characters like this?

For example I set the my textview as \'çile\' it shows as \'

3条回答
  •  無奈伤痛
    2021-02-06 18:29

    Try the following and see if it helps (source):

    String description = "Turkish characters here";
    TextView tv = (TextView) findViewById(R.id.description); 
    tv.setText(Html.fromHtml(description).toString());
    

提交回复
热议问题