android - 如何显示符号

时间:2012-07-31 12:15:50

标签: android symbols

我尝试显示部分的符号(“§”)然后它将显示未知的符号。我尝试了很多,但我没有得到。请任何人帮助我。

Code

builder.setMessage(readEula(活性));

private static CharSequence readEula(活动活动)     {

    BufferedReader in = null;
    try 
    {
        in = new BufferedReader(new InputStreamReader(activity.getAssets().open(ASSET_EULA)));
        String line;
        StringBuilder buffer = new StringBuilder();
        while ((line = in.readLine()) != null) buffer.append(line).append('\n');
        return buffer;
    } 
    catch (IOException e)
    {
        return "";
    } 
    finally
    {
        closeStream(in);
    }
}

感谢。

1 个答案:

答案 0 :(得分:1)

尝试:

   yourTextView.setText("\u00a7");

   yourDilogBuilder.setMessage("\u00a7 bla-bla-bla....");