Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node.js ANSI轉碼 #23

Open
karta71638 opened this issue Apr 1, 2017 · 0 comments
Open

node.js ANSI轉碼 #23

karta71638 opened this issue Apr 1, 2017 · 0 comments

Comments

@karta71638
Copy link

var scanf = require('scanf');
console.log('請輸入文字:');
var name = scanf('%s');
console.log(name);

嘉義
�Ÿq

上面是我的程式碼,請問一下,執行程式的時候,我輸入嘉義顯示的結果好像是ANSI碼�Ÿq,請問我要怎麼把她轉成中文字呢? 因為之後的程式要讀取剛剛輸入的中文字

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant