2014-07-18 4 views
1

Android에서 WebView에 약간 문제가 있습니다.Android WebView에서 이상한 문자가 표시됩니다.

WebView에서 다음 텍스트를로드 할 때 예를 들어 이상한 문자가 나타납니다. the 's, 그리고 또한 나중에. html로이 로거에 인쇄되어 있습니다 :

This week’s show is hosted by Fr. Gabriel Gillen, O.P. and Fr. Walter Wagner, O.P .  The readings are: Acts 2:14A, 36-41; 1 Peter 2:20B-25; John 10:1-10.  Click here to listen!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=opeast.org&blog=23933483&post=18874&subd=dominicandaily&ref=&feed=1" width="1" height="1" /> 

코드는 로그인하고 HTML을로드하는 것은 :

Log.d(iDomsAndroidApp.TAG, "HTML: " + article.getDescription()); 
webView.loadData(html, "text/html", "utf-8"); 

결과 화면은 다음과 같습니다 는 enter image description here

는 아무도 나에게 힌트를 줄 수 이 문제를 해결하는 방법?

+1

참조 [여기 링크 설명을 입력합니다] [1] [1] : http://stackoverflow.com/questions/7625946/encoding-issue- with-webviews-loaddata –

답변

1

에 의해 시도

webView.loadData(myHtmlString, "text/html; charset=UTF-8", null); 
관련 문제