我只是通过网址调用WebPage而且在网页上我提供Facility在Server / WebSite上用印地语写文本它工作正常但是当我在我的应用程序中调用它将无法工作....
try {
webView = (WebView) findViewById(R.id.webview);
webView.getSettings().setLoadWithOverviewMode(true);
webView.getSettings().setUseWideViewPort(true);
webView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
webView.setScrollbarFadingEnabled(false);
webView.getSettings().setBuiltInZoomControls(true);
webView.getSettings().setJavaScriptEnabled(true);
String language_url = "http://pratinidhi.in/DataInsert.aspx?requestfor=" + RequestId
+ "&APPID=" + GlobalValue.AppId
+ "&UPID=" + GlobalValue.User_Id;
Log.i("String Url", "" + language_url);
WebView(language_url);
} catch(Exception ex) {
ex.printStackTrace();
}
答案 0 :(得分:0)
添加这两行
webView.loadData(hindi_content, "text/html; charset=UTF-8", null);
webView.loadDataWithBaseURL(null, hindi_content, "text/html", "utf-8", null);