Skip to content

Commit b19c787

Browse files
author
Steve Block
committed
Improve documentation for WebView.loadUrl() to specify charset
Bug: 5435233 Change-Id: I69a8e0c551b58f284cfa95dccfc0ea49b0bbf05f
1 parent bdb3df8 commit b19c787

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/java/android/webkit/WebView.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2075,6 +2075,11 @@ public void postUrl(String url, byte[] postData) {
20752075
* be encoded as base64. Otherwise, the data must use ASCII encoding for
20762076
* octets inside the range of safe URL characters and use the standard %xx
20772077
* hex encoding of URLs for octets outside that range.
2078+
* <p>
2079+
* The 'data' scheme URL formed by this method uses the default US-ASCII
2080+
* charset. If you need need to set a different charset, you should form a
2081+
* 'data' scheme URL which specifies a charset parameter and call
2082+
* {@link #loadUrl(String)} instead.
20782083
* @param data A String of data in the given encoding.
20792084
* @param mimeType The MIMEType of the data, e.g. 'text/html'.
20802085
* @param encoding The encoding of the data.

0 commit comments

Comments
 (0)