mirror of
https://github.com/status-im/react-native-webview.git
synced 2025-02-24 01:38:45 +00:00
Fix Android WebView with garbled UTF-8 characters
taken from the last line of https://stackoverflow.com/a/10831462/728287
This commit is contained in:
parent
336cdc8559
commit
513886775c
@ -506,7 +506,7 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
|||||||
view.loadDataWithBaseURL(
|
view.loadDataWithBaseURL(
|
||||||
source.getString("baseUrl"), html, HTML_MIME_TYPE, HTML_ENCODING, null);
|
source.getString("baseUrl"), html, HTML_MIME_TYPE, HTML_ENCODING, null);
|
||||||
} else {
|
} else {
|
||||||
view.loadData(html, HTML_MIME_TYPE, HTML_ENCODING);
|
view.loadData(html, HTML_MIME_TYPE + "; charset=" + HTML_ENCODING, null);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user