アセットディレクトリのテキストファイルから読み取ったときに「®」記号を表示する最良の方法を知っている人はいますか? 「®」記号を &® または ® または \u00AE に置き換えてみましたが、どれも機能しません。
それをhtmlとして定義する唯一の解決策はありますか?
アセットからテキスト ファイルを読み取るために使用しているコードは次のとおりです。
mTextViewTermsConditions = (TextView) findViewById(R.id.textView_terms_conditions);
StringBuffer stringBufferEula = new StringBuffer();
try
{
InputStream inputStream = getAssets().open("eula");
BufferedReader f = new BufferedReader(new InputStreamReader(inputStream));
String line = f.readLine();
while (line != null)
{
Logger.d(line);
stringBufferEula.append(line);
line = f.readLine();
}
}
catch (IOException e)
{
Logger.e(e.toString());
e.printStackTrace();
}
mTextViewTermsConditions.setText(stringBufferEula);