我需要证明 webview 显示波斯语(波斯语)/RTL 字符串。
我使用下面的代码:
String text = "<html><body>"
+ "<p align=\"justify\">"
+ getString(R.string.test1)
+ "</p> "
+ "</body></html>";
webView.loadData(text, "text/html", "utf-8");
但 webview 不能显示波斯字符 - 下图:
我该怎么办?