0

My android application was displaying unicode chars properly till android 4.1 . But now on Android 4.2 jelly bean, unicode chars are not getting displayed. I used the following settings as suggested by various forums :

web.getSettings().setDefaultTextEncodingName("utf-8");
web.loadDataWithBaseURL(null, htmlData, "text/html", "utf-8", null);

Also my htmlData variable has the meta content-type setting as urf-8

<meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> 

I don't know where I am making a mistake. Its working fine on all versions prior to 4.2 Please help.

Rajeev
  • 31
  • 5

1 Answers1

0

Both methods that you are using are right,

Android WebView UTF-8 not showing

but probably you are facing a bug.

Wrong character set displayed for Telugu unicode on Nexus 7 - Jelly Bean 4.2.1

I can confirm that this issue is resolved now with the latest update to 4.2.2

Update:

If you believe a new bug is found. Android Open Source Project - Issue Tracker https://code.google.com/p/android/issues/list

Hey heres your issue reported!:)

Gurmukhi (Punjabi) Unicode support in webview on android 4.2

Community
  • 1
  • 1
Jorgesys
  • 124,308
  • 23
  • 334
  • 268
  • Unfortunately, I tried with 4.2.2 also and the Punjabi Unicode support is still broken..Please guide where to report the BUG. – Rajeev Feb 14 '14 at 14:54