Skip to content Skip to sidebar Skip to footer

How To Load Raw Resource With Charset Windows-1251 Into Webview?

How to load raw resource with charset windows-1251 into WebView? The only way that is working for me is: public class FileUtils { public static String loadRawFileAsBase64(Conte

Solution 1:

If you create web content dynamically it may be helpful to set following charset in section

String header = "<HTML><HEAD><META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=windows-1251\"></HEAD>";

Post a Comment for "How To Load Raw Resource With Charset Windows-1251 Into Webview?"