Skip to content

Unhandled exception output encoding is incorrect in windows console. #4754

@heroboy

Description

@heroboy

main.js:

console.log("啊啊啊");
throw new Error("啊啊啊");

output:

c:\Users\VIP\Desktop\PlayNode>node main
啊啊啊
c:\Users\VIP\Desktop\PlayNode\main.js:2
throw new Error("鍟婂晩鍟?);
^

Error: 鍟婂晩鍟?
    at Object.<anonymous> (c:\Users\VIP\Desktop\PlayNode\main.js:2:7)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:467:10)
    at startup (node.js:134:18)
    at node.js:961:3

c:\Users\VIP\Desktop\PlayNode>

Metadata

Metadata

Assignees

No one assigned

    Labels

    windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions