aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2011-06-02 10:41:20 -0700
committerAndroid Code Review <code-review@android.com>2011-06-02 10:41:20 -0700
commitff80c46a46aa72e96fd7c0f52e9f7713d1d9460e (patch)
tree37a0832916c28fcaa490b310abb3fe2dbe527550
parent2ed097a9d901b17649cbe16f3260ec357c294b9c (diff)
parentc808baa7066e3680c8e36197b923283967d23d03 (diff)
downloadsdk-ff80c46a46aa72e96fd7c0f52e9f7713d1d9460e.zip
sdk-ff80c46a46aa72e96fd7c0f52e9f7713d1d9460e.tar.gz
sdk-ff80c46a46aa72e96fd7c0f52e9f7713d1d9460e.tar.bz2
Merge "Properly configure KXml parsers."
-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) {