Open Jordan-Haidee opened 2 months ago
My test code is
use rpassword::prompt_password; #[test] fn test_prompt_password() { let passwd = prompt_password("请输入密码:").unwrap(); }
where the prompt is simplified Chinese. It should print given prompt:
"请输入密码:"
if everything is ok. But now its output is messy code:
璇疯緭鍏ュ瘑鐮侊細
Microsoft Windows
My test code is
where the prompt is simplified Chinese. It should print given prompt:
if everything is ok. But now its output is messy code:
Microsoft Windows
. In China, it defaults to be GBK.