Fix webview text encoding bug

This commit is contained in:
Shinokuni 2019-08-06 21:22:42 +02:00
parent 1ee0f50801
commit ae1b38b662
1 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@ import android.webkit.WebView;
import com.readrops.app.R;
import com.readrops.app.database.pojo.ItemWithFeed;
import com.readrops.readropslibrary.utils.LibUtils;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
@ -27,7 +26,7 @@ public class ReadropsWebView extends WebView {
public void setItem(ItemWithFeed itemWithFeed) {
this.itemWithFeed = itemWithFeed;
loadData(getText(), LibUtils.HTML_CONTENT_TYPE, "UTF-8");
loadData(getText(), "text/html; charset=utf-8", "UTF-8");
}
@SuppressLint("SetJavaScriptEnabled")