0

Im using android view client to automate testing of an android app, but all of the views are on Russian, so when I'm using dump.py i have something like this:

 android.widget.TextView id/no_id/16 ╨в╤А╨░╨╜╤Б╨┐╨╛╤А╤В

How can I see it in normal view? Because it's not comfortably to find the vies in such view.

Update

I used chcp 65001 and got one TextView on Russian, but after thata I recieved an error:

                     android.widget.TextView id/no_id/15 Все категорииTraceback
(most recent call last):
  File "C:\Program Files (x86)\Android\AndroidViewClient\AndroidViewClient-maste
r\AndroidViewClient\tools\dump.py", line 128, in <module>
    vc.traverse(transform=transform)
  File "C:\Program Files (x86)\Android\AndroidViewClient\AndroidViewClient-maste
r\AndroidViewClient\src\com\dtmilano\android\viewclient.py", line 1754, in trave
rse
    return ViewClient.__traverse(root, indent, transform, stream)
  File "C:\Program Files (x86)\Android\AndroidViewClient\AndroidViewClient-maste
r\AndroidViewClient\src\com\dtmilano\android\viewclient.py", line 1776, in __tra
verse
    ViewClient.__traverse(ch, indent=indent+"   ", transform=transform, stream=s
tream)
  File "C:\Program Files (x86)\Android\AndroidViewClient\AndroidViewClient-maste
r\AndroidViewClient\src\com\dtmilano\android\viewclient.py", line 1773, in __tra
verse
    print >>stream, ius.encode('utf-8', 'replace')
IOError: [Errno 0] Error
4

1 回答 1

0

这是使用 latest dump(在工具目录中)和标题为Привет мир的 google Keep note 获得的:

              ...
              android.widget.RelativeLayout id/no_id/18 
                 android.widget.FrameLayout id/no_id/19 
                    android.widget.LinearLayout id/no_id/20 
                       android.widget.LinearLayout id/no_id/21 
                          android.widget.EditText id/no_id/22 Привет мир
                       android.widget.LinearLayout id/no_id/23 
                          android.widget.ImageView id/no_id/24 
                          android.widget.ImageView id/no_id/25

这是在 OS X 和 Linux 上测试的。如果您没有看到它,则问题可能出在您的操作系统上;-)。

于 2013-12-19T05:50:38.810 回答