From a523002b83e5f75fbe64125b439afbfa90851f1a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 27 Nov 2011 10:40:59 +0300 Subject: [PATCH] switch to yet another hack to display utf-8 characters in webview, thanks google! --- AndroidManifest.xml | 4 ++-- src/org/fox/ttrss/ArticleFragment.java | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index e7e957fd..b94ff8aa 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="10" + android:versionName="0.1.9"> diff --git a/src/org/fox/ttrss/ArticleFragment.java b/src/org/fox/ttrss/ArticleFragment.java index e2e61944..60ac6090 100644 --- a/src/org/fox/ttrss/ArticleFragment.java +++ b/src/org/fox/ttrss/ArticleFragment.java @@ -56,22 +56,24 @@ public class ArticleFragment extends Fragment { cssOverride = "body { background : black; color : #f0f0f0}\n"; } - content = URLEncoder.encode("" + + content = + "" + "" + - "" + // wtf, google? + "" + "" + "" + - "" + m_article.content + "", "utf-8").replace('+', ' '); - } catch (UnsupportedEncodingException e) { + "" + m_article.content + ""; + + } catch (Exception e) { content = getString(R.string.could_not_decode_content); e.printStackTrace(); } - web.loadData(content, "text/html", "utf-8"); + web.loadDataWithBaseURL(null, content, "text/html", "utf-8", null); } TextView dv = (TextView)view.findViewById(R.id.date);