I get instead of the Russian text. What could be the problem in https://try.jsoup.org/ is the same. Start html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> 

end

 </table> <!-- RedHelper --> <script id="rhlpscrtg" type="text/javascript" charset="utf-8" async="async" src="https://web.redhelper.ru/service/main.js"> </script> <!--/Redhelper --> </body> </html> 

I finish the page with php / I get a Webview like this - myWeb.loadData(text, "text/html", "CP1251"); put different encodings

The problem in the webview text displays normally

  • Perhaps, problems with coding on the server itself - Vladyslav Matviienko
  • yes it can, but now I checked how it’s output there, everything is fine with it being displayed * The problem in the webview text is normal - added - Artem
  • I found the answer at stackoverflow.com/questions/3961589 , we needed to write loadData (text, "text / html; charset = UTF-8", null); - Artem
  • @ Artem, I was ahead for 10 seconds))) - YuriySPb

1 answer 1

Try to set the encoding for WebView differently:

 myWeb.loadData(fullHtml, "text/html; charset=UTF-8", null);