2011-10-03 30 views

回答

2

Android使用Unicode字体,因此它可以正常显示韩文字符。 你可以尝试改变你的项目的文本编码,因为它不是android问题。

+0

我同意。我建议你确保你正在加载的文件被设置为utf8编码。我从xml和csv文件加载中文和韩文没有任何问题。 –

+0

我得到的响应字符串为StreamTitle =����5�� - 10������������ï stream½½½½½½mp mp mp mp mp mp mp mp mp mp mp mp mp mp this this this this this this this this this this this this I I I I I I I I I I I I I I I I文本textview它显示相同的字符串,我想要它应该显示适当的韩文语言的歌曲名称。 – Rupali

+0

看来,该字符串不是Unicode格式。在这种情况下,你应该遵循xjaphx的答案。 – xtr

0

你需要一个True Type字体(TTF)文件支持它似乎的语言。将韩文字体文件复制并粘贴到资产文件夹中,然后尝试使用此代码。

TextView text = (TextView) findViewById(R.id.textView1); 
    Typeface font=Typeface.createFromAsset(activity.getAssets(), "fonts/yourfontname.ttf"); 
    holder.text.setTypeface(font); 
    holder.text.setText(your_variable);