Skip to content

UnicodeDecodeError #7

@VPDong

Description

@VPDong

Hi,
I hava a file that generated on android,I convert it to a standard binary hprof by the tool "hprof-conv".stackcollapse-hprof use "utf-8" to read it,so error is showed:

    File "./stackcollapse_hprof.py", line 207, in <module>
      main()
    File "./stackcollapse_hprof.py", line 184, in main
      content  = get_file_content(filename)
    File "./stackcollapse_hprof.py", line 60, in get_file_content
      return f.read()
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 302, in decode
      (result, consumed) = self._buffer_decode(data, self.errors, final)
      UnicodeDecodeError: 'utf8' codec can't decode byte 0x99 in position 29: invalid start byte

Do you have a solution for android hprof?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions