Skip to content

decode error for some chinese words #6

@orangemi

Description

@orangemi

Try this:

var utf7 = require('utf7')
var msg = '新建'
console.log(msg, utf7.encode(msg), utf7.decode(utf7.encode(msg)))

Output:

新建 +ZbBe+g- 新帀

If I change the msg to a single word , encode & decode is correct. When it msg contains 2 words it got wrong decode.

Any idea ?

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