Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b19c7878 authored by Steve Block's avatar Steve Block
Browse files

Improve documentation for WebView.loadUrl() to specify charset

Bug: 5435233
Change-Id: I69a8e0c551b58f284cfa95dccfc0ea49b0bbf05f
parent bdb3df82
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2075,6 +2075,11 @@ public class WebView extends AbsoluteLayout
     * be encoded as base64. Otherwise, the data must use ASCII encoding for
     * octets inside the range of safe URL characters and use the standard %xx
     * hex encoding of URLs for octets outside that range.
     * <p>
     * The 'data' scheme URL formed by this method uses the default US-ASCII
     * charset. If you need need to set a different charset, you should form a
     * 'data' scheme URL which specifies a charset parameter and call
     * {@link #loadUrl(String)} instead.
     * @param data A String of data in the given encoding.
     * @param mimeType The MIMEType of the data, e.g. 'text/html'.
     * @param encoding The encoding of the data.