Reputation: 10402
I try to display the symbol of sections("§") then it will display unknown symbol.I tried alot but i am not getting. please can anybody help me.
Code
builder.setMessage(readEula(activity));
private static CharSequence readEula(Activity activity) {
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);
}
}
thanks.
Upvotes: 0
Views: 386
Reputation: 9801
Try:
yourTextView.setText("\u00a7");
or
yourDilogBuilder.setMessage("\u00a7 bla-bla-bla....");
Upvotes: 1