Skip to content

The Chinese & are forced to \uFF08 & \uFF09, how to keep them? #386

Open
@finscn

Description

@finscn

There are some Chinese chars in my code , example :

var name = "大城小胖(fins)";

I use escodegen.generate to re-generate my code , the string become :

var name = '大城小胖\uFF08fins\uFF09';

How to keep them ?

And I've test , it's not esprima.parse's fault.
the string in the AST is original.

version:
"escodegen": "^1.11.0",
"esprima": "^4.0.1",


I found (is not , ) is also with this bug.

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