WebView ignores document lang / encoding
See original GitHub issueIs this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment: OS: Windows 10 Node: 9.3.0 Yarn: 1.3.2 npm: 5.5.1 Watchman: Not Found Xcode: N/A Android Studio: Version 3.0.0.0 AI-171.4443003
Packages: (wanted => installed) react: 16.0.0 => 16.0.0 react-native: 0.51.0 => 0.51.0
Steps to Reproduce
(Write your steps here:)
- Init a new project.
- Copy/Paste the code I provide.
- See - the characters are wrong.
Expected Behavior
Show the word in Hebrew:
שלום
Actual Behavior
Shows some bad characters.
Reproducible Demo
Link: https://snack.expo.io/HkmOZ0VHG
If it’s not a bug then how can I achieve this relatively simple task of setting the encoding to Hebrew? I’ve search all over the internet, as well as the docs and this very repo issue tracker 😃
Thank you!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Encoding issue with WebView's loadData - android
This works flawlessly, especially on Android 4.0, which apparently ignores character encoding inside HTML. Tested on 2.3 and 4.0.3.
Read more >WebView - Android Developers
public class WebView ... Use createPrintDocumentAdapter(java.lang. ... Check whether this ViewGroup should ignore focus requests for itself and its children ...
Read more >URL Standard
In HTML, when the document encoding is a legacy encoding, code points in the URL-query string that are higher than U+007F DELETE will...
Read more >Web Application Manifest - W3C
This specification defines a JSON-based file format that provides ... The manifest's lang member is a string in the form of a language...
Read more >core/java/android/webkit/WebView.java - platform/frameworks ...
File ;. import java.lang.annotation.Retention; ... The {@code encoding} parameter specifies whether the data is base64 or URL. * encoded.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
try add baseUrl:‘’
Thanks @4external . For others: Check out react-native-htmlview .
For the team: Isn’t that a bug, though? Adding ‘baseUrl’ as an empty string sounds like a workaround…