Skip to content

Instantly share code, notes, and snippets.

@zaki50
Created December 17, 2010 07:48
Show Gist options
  • Save zaki50/744636 to your computer and use it in GitHub Desktop.
Save zaki50/744636 to your computer and use it in GitHub Desktop.
eclipse と ddms で logcat に ASCII外の文字を出すと化ける不具合の修正です。 tools_r8 ブランチ用
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