Created
December 17, 2010 07:48
-
-
Save zaki50/744636 to your computer and use it in GitHub Desktop.
eclipse と ddms で logcat に ASCII外の文字を出すと化ける不具合の修正です。 tools_r8 ブランチ用
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ddms/libs/ddmlib/src/com/android/ddmlib/MultiLineReceiver.java b/ddms/libs/ddmlib/src/com/android/ddml | |
index 24dbb05..f3d9412 100644 | |
--- a/ddms/libs/ddmlib/src/com/android/ddmlib/MultiLineReceiver.java | |
+++ b/ddms/libs/ddmlib/src/com/android/ddmlib/MultiLineReceiver.java | |
@@ -51,7 +51,7 @@ public abstract class MultiLineReceiver implements IShellOutputReceiver { | |
if (isCancelled() == false) { | |
String s = null; | |
try { | |
- s = new String(data, offset, length, "ISO-8859-1"); //$NON-NLS-1$ | |
+ s = new String(data, offset, length, "UTF-8"); //$NON-NLS-1$ | |
} catch (UnsupportedEncodingException e) { | |
// normal encoding didn't work, try the default one | |
s = new String(data, offset,length); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment