Skip to content

It's about encoding issue. #18

Open
@LEEBYOUNGSIK

Description

@LEEBYOUNGSIK

I'm a Korean developer using Sheetsjs.
I'd like to export file in csv. For that, I used sheet_to_csv util.
And I need to have the csv file encoded in euc-kr, now it's utf-8 with BOM.
And I also know that codepage utils. But I couldn't find any euc-kr type in codepage utils.
So I tried to do that with cp949. But I failed to encode hangul.
Here's my code and screen shot.

How can I solve this issue?

var encData = cptable.utils.encode(949, sheet, 'str'); console.log(encData);

and its results are below.
encodingCap

Thank you for your cooperation in advance.

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