0

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

Code

builder.setMessage(readEula(activity));

私人静态 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);
    }
}

谢谢。

4

1 回答 1

1

尝试:

   yourTextView.setText("\u00a7");

或者

   yourDilogBuilder.setMessage("\u00a7 bla-bla-bla...."); 
于 2012-07-31T12:32:26.457 回答