Integrate #845 into this pull.

This commit is contained in:
atanasovg
2015-09-30 18:06:43 +03:00
parent 4c37907d8f
commit bd97f22683

View File

@@ -83,7 +83,7 @@ export class WebView extends common.WebView {
}
var baseUrl = `file:///${path.substring(0, path.lastIndexOf('/') + 1) }`;
this._android.loadDataWithBaseURL(baseUrl, content, "text/html", null, null);
this._android.loadDataWithBaseURL(baseUrl, content, "text/html; charset=utf-8", "utf-8", null);
}
public _loadHttp(src: string) {
@@ -99,7 +99,7 @@ export class WebView extends common.WebView {
return;
}
this._android.loadData(src, "text/html", null);
this._android.loadData(src, "text/html; charset=utf-8", "utf-8");
}
get canGoBack(): boolean {