yusomang / androguard

Automatically exported from code.google.com/p/androguard
Apache License 2.0
0 stars 0 forks source link

Patch for /androguard/core/bytecodes/apk.py #130

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Fix unicode value in AndroidManifest.xml

Traceback (most recent call last):
  File "startQT.py", line 234, in on_actNew_triggered
    self.Tab_APKInfo(Global.APK)
  File "startQT.py", line 383, in Tab_APKInfo
    self.textEdit_services.setText(apk.getServices()[0])
  File "/home/veo/WorkSpace/Android/apkinspector-master/APKInfo.py", line 74, in getServices
    services = self.apk.get_services()
  File "/home/veo/WorkSpace/Android/androguard/androguard/core/bytecodes/apk.py", line 445, in get_services
    return self.get_elements("service", "android:name")
  File "/home/veo/WorkSpace/Android/androguard/androguard/core/bytecodes/apk.py", line 372, in get_elements
    l.append( str( value ) )
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0195' in position 
2: ordinal not in range(128)

Original issue reported on code.google.com by V.E.O.T...@gmail.com on 9 Jul 2013 at 7:01

Attachments: