Skip to content

Fix invalid UTF-8 sequences handling in XML/JSON export #94

Description

@sdnvx1

This issue is already fixed for YAML. Correct escaping or writing string as binary data should be provided for JSON and XML also. The dump with invalid UTF-8 strings is data/lenovo/thinkpad-t14-g3-21aj.bin. See OEM-specific structures there:

- handle: 0x0035
  type: 133
  length: 74
  level: ! '0.0'
  description: OEM-specific
  data: !!binary |-
    hSw1APm0lXhNkgpBljkSOGKyimMAA1ACBAEAAwAAAAEAAABhclcYAwAAAAA=
  strings:
  - !!binary |-
    hSz+//m0lXhNkgpBljkSOGKyimM=
  - ! "\x03P\x02\x04\x01"
  - ! "\x04"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions