Skip to content

vsam.js returns ebcdic  #18

@mkhouse8

Description

@mkhouse8

When I console.log the record the data that is displayed appears to be EBCDIC encoded. Is there a setting I'm missing?

I have several other questions as well but not sure if I should open a separate ticket for each one or is there a better place to ask.

node v12.13.0
_BPXK_AUTOCVT=ON
_CEE_RUNOPTS="FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)"

Console output.
record=hexadecmal
-bash-4.3$ node app
BCFILE.DATA Found
Record read { key: '@����', record: 'f24040404040d7d3e4e240d9c5c6e4d5c440e3d6' }
f24040404040d7d3e4e240d9c5c6e4d5c440e3d6

record=string
-bash-4.3$ node app
BCFILE.DATA Found
Record read { key: '@����', record: '�@@@@@����@������@��' }
�@@@@@����@������@��

Thanks,
Matt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions