mirror of https://github.com/readrops/Readrops.git
Fix webview text encoding bug
This commit is contained in:
parent
1ee0f50801
commit
ae1b38b662
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue