aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/plugins
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2011-06-01 18:30:53 -0700
committerXavier Ducrohet <xav@android.com>2011-06-01 18:30:53 -0700
commitc808baa7066e3680c8e36197b923283967d23d03 (patch)
tree72c621d7707f0462db88005569b46f041fcb48d9 /eclipse/plugins
parent36cea27c1a6473f744c1c7931f56a8afcf531c63 (diff)
downloadsdk-c808baa7066e3680c8e36197b923283967d23d03.zip
sdk-c808baa7066e3680c8e36197b923283967d23d03.tar.gz
sdk-c808baa7066e3680c8e36197b923283967d23d03.tar.bz2
Properly configure KXml parsers.
Change-Id: If307659aabe37c5204f7e40c10fc93576de0e145
Diffstat (limited to 'eclipse/plugins')
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/RenderService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/RenderService.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/RenderService.java
index 655097d..bee1289 100644
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/RenderService.java
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/RenderService.java
@@ -56,8 +56,8 @@ import org.xmlpull.v1.XmlPullParserException;
import java.awt.image.BufferedImage;
import java.io.File;
+import java.io.FileInputStream;
import java.io.FileNotFoundException;
-import java.io.FileReader;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
@@ -322,7 +322,7 @@ public class RenderService {
mProjectCallback.setLayoutParser(queryLayoutName, modelParser);
topParser = new ContextPullParser(mProjectCallback);
topParser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);
- topParser.setInput(new FileReader(layoutFile));
+ topParser.setInput(new FileInputStream(layoutFile), "UTF-8"); //$NON-NLS-1$
} catch (XmlPullParserException e) {
AdtPlugin.log(e, ""); //$NON-NLS-1$
} catch (FileNotFoundException e) {