Skip to content

add some cjk encoding support for Data Inspector. #464

@liudonghua123

Description

@liudonghua123

Hi, I like this extension, it's awesome. But sometimes the bytes in the file could not decode as some cjk encoding like gbk.

It would be nice to support this feature.

And I go through the code and find maybe I can add gbk support like utf-8 in media/editor/dataInspectorProperties.tsx.

{
label: "UTF-8",
minBytes: 1,
convert: dv => {
const utf8 = new TextDecoder("utf-8").decode(dv.buffer);
for (const char of utf8) return char;
return utf8;
},
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues related to new features users want

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions